Jump to content

Validating an email address has been entered into a text field


coolphpdude

Recommended Posts

Hi there,

 

I have a 3 part problem which i need to get sorted ASAP. Ive been told by my uni tutor that i need to include this in my project!

 

Firstly i have a text field for a user to enter their email address upon registration... but i have no validation to find out if an @ sign has been entered or a dot (.) before the com or co.uk, etc. Is this easy to do and can someone tell me how to do it or point me in the right direction to find out?

 

I'm also getting wrong for not getting an email sent to the user upon registration (which i obviously can't do until i've confirmed the email address is in the correct format) for the user to click a link to activate their account. So how do i do this?

 

Could anyone explain or point me in the right direction?

 

Cheers

Hi thanks, that code works! could you break it down and explain it to me so i understandhow it works?

 

I honestly don't understand that stuff lol. I found it somewhere at some point and have used it ever since.

 

and as for the emailing. look into the mail(); function on php.net

Archived

This topic is now archived and is closed to further replies.

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