The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Passing email address through URL to $_GET

Ok this may not even be my problem. I am an old newbie... It doesn't make sense I know. I am coming back to php after a few years of absence.

I have an email that gets sent out to validate a user account.

The validation string is http://www.thedomain.com/validatescript.php?action=activate&user=emailaddy@myemailaddress.com&code=validationstringalljumbledup

I have looked at every single thing I can look at, the validate script should check the database for the email address, use the validationstring to make sure it is the right person, and mark a 1 in the is_validated field of the database to allow the user to login to the site.

Problem being, I get a blank page.

Am I getting the blank page because of the email address in the string? Or do I need to dig deeper? If I try a var_dump($_GET) I still am getting a blank page, which leaves me to believe that it is choking on the email address in the string?

Correct?

If so, how can I pass that email address (because it *IS* the username) through the URL to the script with out the script choking, or MySQL choking?

There's nothing wrong with that URL. You can put an e-mail address in a URL. You might want to urlencode() it to be safe, but characters not allowed in a URL won't stop the script from running entirely.

As an aside, I personally wouldnt send an email address in a URL, I'd use a ref number instead, especially as the email address is your login, the less you give away the better and you've just given away half of your security !!!!

As for your problem, post the code.

Hope it helps

Terry

A Little Knowledge Is A Very Dangerous Thing.......That Makes Me A Lethal Weapon !!!!!!!!

As an aside, I personally wouldnt send an email address in a URL, I'd use a ref number instead, especially as the email address is your login, the less you give away the better and you've just given away half of your security !!!!

As for your problem, post the code.

Hope it helps

Terry

Thanks for the tip. Def. a good idea. I will change it to send the numbered id out of the database, either way it is unique.

As an aside, I personally wouldnt send an email address in a URL, I'd use a ref number instead, especially as the email address is your login, the less you give away the better and you've just given away half of your security !!!!