By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,433 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

confirm previously entered email address

P: 23
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.
Jan 20 '07 #1
Share this Question
Share on Google+
3 Replies


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

P: 23
[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%">Email:</td>
<td width="80%"><input name="email" type="text" size=45 maxlength=80 value="<?if (isset($email)) print $email; ?>"></td>
</tr>
<tr>
<td width="20%">Confirm Email:</td>
<td width="80%"><input name="email_again" type="text" size=45 maxlength=80 ></td>
</tr>


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

ronverdonk
Expert 2.5K+
P: 4,258
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:
Jan 21 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.