You are here: Re: '?' usage « All PHP « IT news, forums, messages
Re: '?' usage

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация