confirm previously entered email address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nwebhosting
    New Member
    • Oct 2006
    • 23

    #1

    confirm previously entered email address

    Hi.

    I need help with this plzz:

    Where I could find a php form script that confirms the email ( like enter email again just to make sure the user has enter the right email)

    Thanks for any help.
  • CMNetworx
    New Member
    • Jan 2007
    • 4

    #2
    [php]
    if ($_POST['email'] != $_POST['email_again']) {
    die('Your emails did not match');
    }
    [/php]

    Comment

    • nwebhosting
      New Member
      • Oct 2006
      • 23

      #3
      Originally posted by CMNetworx
      [php]
      if ($_POST['email'] != $_POST['email_again']) {
      die('Your emails did not match');
      }
      [/php]


      Hello and thank you.

      I have this code but, what where exactly should I compare the strings then if email was wrong just lift the info there but if right write it in the db.

      Thank for any help.
      [PHP]
      <tr>
      <td width="20%">Ema il:</td>
      <td width="80%"><in put name="email" type="text" size=45 maxlength=80 value="<?if (isset($email)) print $email; ?>"></td>
      </tr>
      <tr>
      <td width="20%">Con firm Email:</td>
      <td width="80%"><in put name="email_aga in" type="text" size=45 maxlength=80 ></td>
      </tr>


      <tr>
      <td> </td>
      <td>
      <input type="hidden" name="e_id" value="<?if (isset($_REQUES T['e_id'])) print $_REQUEST['e_id']?>">
      <input type="submit" name="submit" value="Send Email"></td>
      </tr>
      [/PHP]

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        This can only be part of your code. What we, at least, should see is the start of the script where you capture the $_POST array. And also the form that is submitted. So show all code please.

        Ronald :cool:

        Comment

        Working...