Page 1 of 1

HTML SELECT AND PHP AND MYSQL QUERY

Posted: Fri Jul 18, 2003 2:35 pm
by tuta
Hello!
I am needing, and a lot of your help.
I have a HTML with a < SELECT > and with the name D1 and I am needing to pass the value of D1 as parameter for PHP.
I tested the choice of the value of the choice for the user with the vbscript and it is correct. The event onchange is coming back the property value of the correctly < SELECT >. However I don't get to pass this form value some for PHP.
Please, help me the period for delivery of the page is expiring.
Thank“s

Posted: Fri Jul 18, 2003 2:47 pm
by Fredix
Please, help me the period for delivery of the page is expiring.
...*a light grin is running over my lips coz I know that situation*...

back to the topic:
you either use Java Script (DO NOT USE VBSCRIPT FOR ANYTHING!!) and onchange redirect to something like http://yoursite.com/script.php?choice=value (where value is what was chosen)
or make a form and POST the data when a submit button is pressed.

you could use both solutions becuase the first is more comfortable but doesn't work for those who have JS disabled, they would use the button then.

hope I helped