Jump to content

asian_male66

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

asian_male66's Achievements

Newbie

Newbie (1/5)

0

Reputation

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