|
Posted by Greg on 10/26/05 11:00
>
> www.http://www.domain.com/login.php?username=dumb&password=letmein
>
> This passes username "dumb" and password "letmein" to login.php. How
> login.php uses them is up to the script (using $_GET[] to retrieve the
> parameters).
To take that further, in your login script, you would retrieve the variables
like so:
If the URL is
http://www.domain.com/login.php?username=dumb&password=letmein
your PHP script would get the username and password like this:
$username = $_GET["username"];
$password = $_GET["password"];
so:
echo "$username<br><br>";
echo "$password";
would yield:
dumb
letmein
Do you $_GET[] it? HAHAHAHA, I crack myself up.
-g-
Navigation:
[Reply to this message]
|