passing an array via GET and a hidden form element

From: Date: Sun, 02 Nov 2003 16:38:43 +0000
Subject: passing an array via GET and a hidden form element
Groups: php.general 
Request: Send a blank email to php-general+get-168336@lists.php.net to get a copy of this message
I'm trying to pass a variable from a search page to the results page via GET. The $MANUFACTURERS variable contains an array and is obtained from the URL. I've tried the following to no avail... <input name="manufacturer[]" type="hidden" multiple id="manufacturer[]" value=<?php $manufacturer ?>> <input name="manufacturer[]" type="hidden" multiple id="manufacturer[]" value=<?php echo $manufacturer ?>> <input name="manufacturer[]" type="hidden" multiple id="manufacturer[]" value="<?php $manufacturer ?>"> <input name="manufacturer[]" type="hidden" multiple id="manufacturer[]" value="$manufacturer"> <input name="manufacturer[]" type="hidden" multiple id="manufacturer[]" value=$manufacturer> Except for the last two entries, in the URL, the others all passed "...&manufacturer%5B%5D=Array..." When analyzing the variable on the results page, I wind up with $manufacturer equaling an array with one element equaling "Array"... Array ( [0] => Array ) Any suggestions? Thanx, -- Robb Kerr Digital IGUANA Helping Digital Artists Achieve their Dreams http://www.digitaliguana.com http://www.cancerreallysucks.org

« previous php.general (#168336) next »