Jump to content

PHP FORM MAIL


PHP-POWER

Recommended Posts

Hi am new to PHP n really need HELP!

 

I've coded a normal feedback form and it works perfect. BUT the problem is that the browsers are able to go back and re-submit the form AGAIN n AGAIN..... The form is not obviously not cleared whn they hit the back button and they are able to post the feedback form(mail) continusly.. Its a nuisance.

 

Can any 1 help me with this issue?????

 

Link to comment
https://forums.phpfreaks.com/topic/51442-php-form-mail/
Share on other sites

<?

$msg .= "COMPANY DETAILS\n";

$msg .= "------------------\n\n";

$msg .= "Company Name : ".$_POST['cname']."\n";

$msg .= "Website : ".$_POST['web']."\n";

$msg .= "City : ".$_POST['city']."\n";

$msg .= "Country : ".$_POST['country']."\n";

$msg .= "Address 1 : ".$_POST['add1']."\n";

$msg .= "Address 2 : ".$_POST['add2']."\n";

$msg .= "Phone : ".$_POST['phone']."\n";

$msg .= "Fax : ".$_POST['fax']."\n";

$msg .= "Mobile : ".$_POST['mobile']."\n";

$msg .= "Email : ".$_POST['email']."\n";

$msg .= "Comments : ".$_POST['comm']."\n";

 

$to = "[email protected]";

$subject = "Website Feedback Form";

mail($to, $subject, $msg, "From: $fname $lname<$email>"."\r\n"."CC:[email protected]");

?>

 

 

This is the php code.

 

 

Link to comment
https://forums.phpfreaks.com/topic/51442-php-form-mail/#findComment-253374
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.