HTML SELECT AND PHP AND MYSQL QUERY

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
tuta
Forum Newbie
Posts: 21
Joined: Mon Jun 30, 2003 3:37 pm
Location: Brasil

HTML SELECT AND PHP AND MYSQL QUERY

Post 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
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

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