Click to See Complete Forum and Search --> : [RESOLVED] Quick Simple $_GET Question


jclarke
08-01-2006, 03:39 AM
Hello all,
I was just wondering:

Does $_GET[]; read from the address eg.

IF I had an address line like:
http://jacobclarkezone.com/chat/buddies.php?curUser=nobody
and I used the following code:

<?php
&userName = $_GET['curUser'];
?>


Would that make the variable $userName the value of "nobody"?

cya

pcthug
08-01-2006, 03:45 AM
Yes.
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.get

jclarke
08-01-2006, 05:14 AM
thanx just needed to confirm that 4 a friend