passing values with a drop down menu

bhavna1
08:23:10
how can i pass values with a drop down menu.my drop down contains a list of manufacturer names.i want to display a value of a variable each time a manufacturer is selected from the drop down.the value of this variable depends on the manufacturer so i need to pass the manufacturer id with the drop down.how can i do this.please help..
smo1234
08-23-2010
There are different ways for this.
You can keep your drop down list inside a form which can be submitted to same page or a different page by clicking a button or by using onselection event of drop down button. To work on drop down list box you can read this

http://www.plus2net.com/php_tutorial/pb-drop.php

Another way is to use Ajax with PHP ( if you can manage this is better way )
http://www.plus2net.com/php_tutorial/ajax-listbox.php
Please Login to post your reply or start a new topic