How to get value from array $_GET ?
How to get value "ShutteR19" from this array?
Array ( [subaction] => userinfo [user] => ShutteR19 )
$_GET is an array like $_POST and this is a value from the Query string.
So refering to the entity by its array name will return its value.
$_GET['item'] returns 14
$_GET['bay'] returns 149
$_GET['box'] returns 3
Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
I laughed that hard I burst my colostomy bag... (\\.\ May03)
Life for some is like a car accident... Mine is like a motorway pile up...
Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?
PS - If you're posting here you should be using:
error_reporting(E_ALL | E_NOTICE);
at the top of ALL php code while you develop it!
And if outputting to the browser, you might find this makes it a bit clearer, especially if you get into multi-dimensional arrays:
echo "<pre>".print_r($_GET, true)."</pre>";
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)