86Stang Posted November 19, 2009 Share Posted November 19, 2009 I've setup a login system where upon insert it enters a random 16 character string into the a_id column of my user table. I then email the newly registered user a link to the activation page appended with the random strong. I.E.: http://www.mysite.com/activate.php?a_id=1234567890123456 When they click on the link, I want the code on activate.php to check if that string exists in the user table. I'm capable of doing all the checks, I just don't know how to pull that random string from the URL so I can check against it. Thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/182211-solved-activation-code-verification/ Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 lol its a get variable Quote Link to comment https://forums.phpfreaks.com/topic/182211-solved-activation-code-verification/#findComment-961476 Share on other sites More sharing options...
premiso Posted November 19, 2009 Share Posted November 19, 2009 $random = $_GET['a_id']; Remember to check/sanitize your data before using it in a query, as it can be SQL injected without doing so. Quote Link to comment https://forums.phpfreaks.com/topic/182211-solved-activation-code-verification/#findComment-961480 Share on other sites More sharing options...
86Stang Posted November 19, 2009 Author Share Posted November 19, 2009 Foiled again by GET. Damn you GET!! Thanks guys Quote Link to comment https://forums.phpfreaks.com/topic/182211-solved-activation-code-verification/#findComment-961483 Share on other sites More sharing options...
emopoops Posted November 20, 2009 Share Posted November 20, 2009 LOL yeah i think i did the same thing.... with somethin regarding get a while back. i was like.. oh. Quote Link to comment https://forums.phpfreaks.com/topic/182211-solved-activation-code-verification/#findComment-961622 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.