473,511 Members | 15,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

confirm previously entered email address

23 New Member
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
3 2960
CMNetworx
4 New Member
[php]
if ($_POST['email'] != $_POST['email_again']) {
die('Your emails did not match');
}
[/php]
Jan 20 '07 #2
nwebhosting
23 New Member
[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
4,258 Recognized Expert Specialist
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

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

Similar topics

4
2021
by: zsh-users-help | last post by:
Hi! This is the ezmlm program. I'm managing the zsh-users@sunsite.dk mailing list. To confirm that you would like python-list@python.org removed from the zsh-users mailing list, please send...
0
1123
by: Dale Bewley | last post by:
dale has NOT seen your email yet! This message was created automatically by mail delivery software (TMDA). Your message attached below is being held because the address...
4
20953
by: JohnSouth104 | last post by:
Hi I want to warn the user that changing the selected item in a pull-down will clear some data he has already entered in a file download box. I've tried using confirm() to return true or false...
3
4812
by: Wm. Scott Miller | last post by:
Hello all: I'd like some advice on the best way to validate and confirm an e-mail address entered during a registration process. What we are thinking of is something like the following: 1. ...
2
1343
by: bombardier | last post by:
I just switched ISPs and am in the process of moving all MySQL databases and PHP scripts to the new ISP. I have some simple HTML forms that post to simple PHP scripts that used to work with my old...
3
1929
by: Jimi409 | last post by:
Hello all and thanks in advance. I have a bound form in access where users enter in client information. One of the fields I have is e-mail address. I need users to confirm the email address...
482
27259
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if this is more of a coldfusion problem or a javscript problem. So if i asked my question in the wrong section let me know an all move it to the correct place. ...
7
1926
by: warder21 | last post by:
Hi, I have absolutely no experience using Java but guess this is whats needed. I simply want to add a "confirm email" box to my PHP message form. It would check the entered value against the "email...
5
41822
by: ahilar12 | last post by:
hi all, i wanted to check whether the password entered matches with the confirm password.either through javascript or through php.i have enclosed my code somebody help on this <html> ...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.