PDA

View Full Version : Confirm Email


mlowery
11-06-2002, 03:17 AM
After people submit a form, I want to automaticly send them a confirmation email from the email they provided in one of the form fields. How would I do this?

Spookster
11-06-2002, 04:03 AM
Off the top of my head you could....

Create a unique confirmation number associated for only that user. Then in the email you would send them a link with that confirmation number attached to the URL like so:

http://www.yourdomain.com/confirm.php?confirmationnumber=123456

Then obviously create a page called confirm.php or whatever you want to use that grabs that confirmation number variable attached to the URL. Then compare it with the confirmation number associated with the one for that user.

mlowery
11-07-2002, 04:27 PM
Yes, I kinda understand how it would work. I am new to php. How would I make a unique confirmation number to that user? And would I have to creat 2 php scripts, one to send the confim email and one to confirm the confirm email?