Jump to content

Html Form Won't Work With 5.4


kkrimmer

Recommended Posts

Not sure if this question should be in HTML or PHP.

 

In 2005 I had someone make a form on my website that is emailed to me. Problem is that the hosting company is upgrading to PHP 5.4 and this form does not work with 5.4

 

Any assistance in correcting this to comply with 5.4 is greatly appreciated. Again, the form works fine with PHP 4.

 

This is the HTML:

<form id="signup" action="mail.php" method="post" onsubmit="return validate_form ( );">

 

 

Here is the mail.php that the html form uses:

---- ----- ---- ----- ---- ----- ---- ----- ---- ----- ---- -----

 

 

<?

if (empty($email))

exit();

 

$to = 'gemaine@dvimest.org';

$subject = 'Form Request';

$message = 'State: ' . $_REQUEST['State'] .

 

"\n Name " . $_REQUEST['nameself'] .

"\n " .

"\n Spouse " . $_REQUEST['namespouse'] .

"\n " .

"\n Phone-- " . $_REQUEST['phone'] .

"\n " .

"\n Email " . $_REQUEST['email'] .

"\n\n " .

 

$email = $_REQUEST['email'];

$headers = 'From: ' . $email . "\r\n" .

'Reply-To: ' . $email . "\r\n" .

'X-Mailer: PHP/' . phpversion();

 

mail ($to, $subject, $message, $headers);

header("Location: formresponse.html");

?>

 

---- ----- ---- ----- ---- ----- ---- ----- ---- ----- ---- -----

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.