Re: passing variables to subsequent pages
| From: | Robb Kerr | Date: | Sun, 02 Nov 2003 14:52:01 +0000 |
| Subject: | Re: passing variables to subsequent pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168332@lists.php.net to get a copy of this message | ||
Both suggestions were very helpful. But, I've still got a problem. The
$MANUFACTURERS variable contains an array. I'm trying to pass this array
with either the GET or POST method. 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='<?=$_GET['manufacturer']?>'> //as per Justin's suggestion
<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, the others all passed
"...&manufacturer%5B%5D=Array..."
Any more suggestions?
Thanx,
--
Robb Kerr
Digital IGUANA