Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- sending data through URL
- Evan Jou
January 24, 2008, 11:36 pm
rate this thread
I have a simple question for you experts here. If I key in a URL like,
for example, http://localhost/test.php?name=Evan&password=Jou directly, will
it send the name and password data to the test.php script? Can I use
$_GET['name'] and $_GET['password'] to manipulate the data? Thank you in
Re: sending data through URL
Yes, it will be in the $_GET array. It is not recommendable though. URL'=
are often saved in history, can be bookmarked, shared, etc, and you don'=
want usernames/passwords in there. HTTP authentication, or even better, =
POSTing the credentials one and just starting a session based on that, =
would be preferable.