asian_male66 Posted March 28, 2006 Share Posted March 28, 2006 HiI have a simple script which is used to process a form. However, when my form is submitted I always get two submissions = two emails!Help!<?phpif ($ac == 'reg1'){ $email = $email; $firstname = $firstname; $surname = $surname; $subject = "Registration Details"; $headers = "From: Registration"; $msg = "Send an email message"; mail($email, $subject, $msg, $headers); $ac = "reg2"; include("ShowValidate.form");}else{ include("Register.form");}?> HTML FORM:Register.fom contains: <form name="regform" onSubmit="return checkCheckBox(this)" method="post" action="Register.php"> <input type="hidden" name="ac" value="reg1"> Link to comment https://forums.phpfreaks.com/topic/6050-duplicate-form-submission/ Share on other sites More sharing options...
shocker-z Posted March 29, 2006 Share Posted March 29, 2006 What is inside ShowValidate.form? as far as i can see all else looks fine Link to comment https://forums.phpfreaks.com/topic/6050-duplicate-form-submission/#findComment-21880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.