register_globals=OFF + email signup validation ??

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am newish to PHP and wish to create an authentication system where a new
user is required to validate/complete their sign-up by clicking a link in an

I am probably capable of putting something together where the user gets sent
a link with a set of values but I am sure it would require
"register_globals" set to ON.

How is this achieved with "register_globals" set to OFF?

Also would love read a decent tutorial on this subject with either
"register_globals" set to ON or OFF.



Re: register_globals=OFF + email signup validation ??

Phil Latio wrote:
Quoted text here. Click to load it


register_globals should have no effect here - and there is nothing you
can't do with register_globals off that you can do with register_globals
on.  You just need to do it a little differently.

In your case, you are sending via email a link to another page.  When
they click on the page in their mail reader, the only info available to
the page is in the request itself.

What you need to look into is databases.  Save the information before
sending the link.  Create a unique id for that row in the database
(PRIMARY KEY) and send that in the link, i.e.

In validate.php, retrieve the key ($_GET['key']) and use that to fetch
the row from the database.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: register_globals=OFF + email signup validation ??

Quoted text here. Click to load it

Many thanks for your reply.

Typically 5 minutes after I post I finally find a tutorial that suits my
needs. :))



Site Timeline