Re: [PHP-DB] $_GET of array variables

2005-01-05 Thread Jason Wong
On Thursday 06 January 2005 07:02, Jochem Maas wrote:

> now lets sing together: "If in doubt print it out!" :-)

Hey, you're using my trademark without my permission :)

google > "If in doubt print it out"

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
New Year Resolution: Ignore top posted posts

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] $_GET of array variables

2005-01-05 Thread Jochem Maas

Jochem Maas wrote:
in the script that recieve the form submission try adding the following 
lines to view the contents of the $_GET superglobal array.

echo '';
print_r( $_GET );
tip for those pulling their hair out: PRINT_R() is your friend!!!
...sometimes referred to as the poormans debugger.
now lets sing together: "If in doubt print it out!" :-)

echo '';
once you see the structure it should be clear what array index key(s) 
you should be using to get to the relevant values.

PS - Matt M.'s syntax suggestion is along the right lines (although the 
actual keys you use may be different.

Matt M. wrote:
$_GET['simplevariable']  but am not having much luck with anything like:
$_GET["arrayvariable$a"] (1-dimensional array) or
$_GET["arrayvariable$a$b"] (2-dimensional array)
(I've tried several other odd syntaxes such as
$_GET["arrayvariable[$a][$b]"].  Also it's not an \" situation.)

have you tried
$_GET["arrayvariable"][$a]
or $_GET["arrayvariable"][$a][$b]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] $_GET of array variables

2005-01-05 Thread Jochem Maas
in the script that recieve the form submission try adding the following 
lines to view the contents of the $_GET superglobal array.

echo '';
print_r( $_GET );
echo '';
once you see the structure it should be clear what array index key(s) 
you should be using to get to the relevant values.

PS - Matt M.'s syntax suggestion is along the right lines (although the 
actual keys you use may be different.

Matt M. wrote:
$_GET['simplevariable']  but am not having much luck with anything like:
$_GET["arrayvariable$a"] (1-dimensional array) or
$_GET["arrayvariable$a$b"] (2-dimensional array)
(I've tried several other odd syntaxes such as
$_GET["arrayvariable[$a][$b]"].  Also it's not an \" situation.)

have you tried
$_GET["arrayvariable"][$a]
or 
$_GET["arrayvariable"][$a][$b]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] $_GET of array variables

2005-01-05 Thread Matt M.
> $_GET['simplevariable']  but am not having much luck with anything like:
> 
> $_GET["arrayvariable$a"] (1-dimensional array) or
> $_GET["arrayvariable$a$b"] (2-dimensional array)
> 
> (I've tried several other odd syntaxes such as
> $_GET["arrayvariable[$a][$b]"].  Also it's not an \" situation.)

have you tried
$_GET["arrayvariable"][$a]
or 
$_GET["arrayvariable"][$a][$b]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php