form hidden value
| From: | Chris Stinemetz | Date: | Mon, 08 Aug 2011 21:23:04 +0000 |
| Subject: | form hidden value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-314436@lists.php.net to get a copy of this message | ||
I'm trying to pass a hidden value with my form submission. Not sure what I
am doing woring, but the value is not being passed.
Query is___
$query = "SELECT id, store_name FROM store_list WHERE store_type =
'$type' AND id_market = '$market' " ;
$result = mysql_query($query) or die(report($query,__LINE__ ,__FILE__));
while($row = mysql_fetch_array($result))
{
$store_name[] = $row['store_name'];
$id[] = $row['id'];
}
sort($store_name);
}
Form portion is____
<input type="hidden" name="id" value="<?php echo
'$id[]';?>">
Any help is greatly appreciated. Thank you.