Page 1 of 1

Script form

Posted: Sat Jan 20, 2007 1:44 am
by glady weber
Hi.

Could you help me 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.

Posted: Sat Jan 20, 2007 2:33 am
by jayshields
Maybe on hotscripts.com as part of a registration script or even a complete forum script.

What you're trying to achieve is actually very simple. Something like this is pretty much it:

Code: Select all

$email = $_POST['email']; //grab the email variable from the HTML form
$confirm_email = $_POST['cemail']; //and the confirmation email variable

if($email != $confirm_email) echo 'The email addresses you entered are not the same'; //show an error if necessary
Obviously you could do with adding some checks using functions such as isset() or is_empty() to prevent notices.