Im new to PHP and was wondering if anyone knew a way to resend the activation email. Firstly, i dont know how to make it check to see if the username and email entered match one in the database. Secondly i dont know how to, once matched up, get the activation_code from the database.
I do however know how to get it in an email and send it haha... just need the main part
If they request it, check in your database the email that they requested it for.
If that email exists, then send them the activation code again (to the email requested) and then you can just treat it as normal.
I don't like to brag, but I wasn't circumcised. I was circumnavigated.
Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
bowersbros wrote:If they request it, check in your database the email that they requested it for.
If that email exists, then send them the activation code again (to the email requested) and then you can just treat it as normal.
Yeah but I'm more after a page that users can visit to get it automatically sent to their email..
this code here displays the activation_code, now i need to know how to get that instead of echo'ing it, into a $activationcode string that i can add to the end of activate.php?aid=$activationcode and email it. Also help with checking the email matches the one in the database and grabs the correct activation code.
Then look into the mail() function for ideas on how to send emails
Hey,
Thanks heaps.. that did the trick got it working so now if they didnt recieve their activation email there is a link that directs them to resend_activation_email that allows them to enter their email and if the email matches one in the database it will send it to that email.