array problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

array problem

Post 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]
?>
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post 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... ?
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

Post 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?
Tubbietoeter
Forum Contributor
Posts: 149
Joined: Fri Mar 14, 2003 2:41 am
Location: Germany

Post 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
Post Reply