confusing problem or am just plain confused....
| From: | Ryan A | Date: | Mon, 09 Jun 2003 20:15:47 +0000 |
| Subject: | confusing problem or am just plain confused.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150954@lists.php.net to get a copy of this message | ||
Hi,
I dont know how exactly to explain this but will do my best, i have many of
the following lines in a page:
<td><p><input type=checkbox name='id[]' value=23><input
type="hidden" name
="package" value="loco package"></td>
each line of course has a differient id[] value and package value.
Everything is working fine with the just id[] value but now i need to add
the package value too...but the problem is when i submit the form all the
hidden fields are getting submitted when i only need the hidden "package"
value of the ticked checkbox...is there any way to do that? or alter the
above so that each id[] can have 2 values?
In the above example i am getting upto 5 id numbers.... after i get the
numbers i am using it like so:
if(isset($id[0]))
{do things}
to get a better idea of what i am talking about if the above is just too
darn confusing check out http://bestwebhosters.com/search.template2.php
note that most of the links are deadlinks as this is still in development.
Any and all help appreciated.
Cheers,
-Ryan