Jump to content


Photo

Duplicate Form Submission


  • Please log in to reply
1 reply to this topic

#1 asian_male66

asian_male66
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 28 March 2006 - 11:04 PM

Hi

I 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!

<?php

if ($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">


#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 29 March 2006 - 09:10 AM

What is inside ShowValidate.form? as far as i can see all else looks fine
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users