PHP web form not submitting info after server transfer?!?

linearfusion

Member
Aug 31, 2006
9
0
151
We have hundreds of PHP forms which are now inactive which we believe to be the result of migrating our websites from one server to another.

They are currently running the same versions of PHP however the original O/S was Redhat (linux kernal 3.2.3-20) and now the sites are deployed on Fedora Core 4.

The form sends, however there is not any information. They are simple forms which had been working before the server migration such as:

{



$email = "Name:\t$faq_name\nPhone Number:\t$faq_phonenumber\nEmail:\t$faq_email\nProblem location:\t$faq_location\nDescription:\t$faq_description\nComments:\t$faq_comm ents\n\n";

$to = "[email protected]";

$subject = "Problem with the Building Request Form";

mail($to, $subject, $email);

include("thanks.php");

}


Any ideas?!? All questions, comments, suggestions, fixes greatly appreciated!!!

HELP!!!!
 

SonServers

Well-Known Member
Oct 24, 2001
94
0
306
This is just a guess . . . is register_globals turned off in php.ini on the new server? If so, the form may not be getting the data.
 

gflamerich

Well-Known Member
Jul 21, 2003
122
0
166
Have you set this on?
In WHM at "Tweak Settings" you will find an option that says:

Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)

That could be the reason of your problem.