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
Please remember to wrap any code you have in forum tags:-
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape...
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
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)