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"> Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.