Page 1 of 1

array problem

Posted: Tue Apr 01, 2003 11:11 pm
by valen53
i have a array problem...
i use a Order ID to seach out a lot of product.. display it in a table..
such as

product ID Product <select> <button>
product ID Product <select> <button>

the select option have 3 method for display different thing. when press the button, form will base on what u select then goto that page.
The problem is how to know that button is belong that product ID and also that select option ???

[/img]
?>

Posted: Tue Apr 01, 2003 11:58 pm
by Stoker
not sure if I understood that correctly.. ? .. jsut give the buttons dfifferent names, and based on which variable ($_REQUEST['buttonname']) had a value set use the related select... ?

Posted: Wed Apr 02, 2003 12:50 am
by valen53
Stoker wrote:not sure if I understood that correctly.. ? .. jsut give the buttons dfifferent names, and based on which variable ($_REQUEST['buttonname']) had a value set use the related select... ?

since i can assign different name to the button and select. but when i press the button, how i know that the select and button are same record. ?and also belong to which record?

Posted: Wed Apr 02, 2003 2:00 am
by Tubbietoeter
You can also make one form for each button an additionally to the button you include hidden input fields (<input type=hidden ...) and submit any information you want