• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

can someone help me out with a php form?

coolguy23

Guest
i need a form that has 2 pull down menus,
in the first menu, there will be some values and if a certain value is selected, in the 2nd pull down menu, new links will appear where if selected, they will go to a second page
 
Client Side...

For what you want to do, you'll need something client-side such as JavaScript. PHP works on the server side, so the only way PHP can cause something as a result of user input is if the user submits the page.

You'll need a JavaScript function that will populate the second drop-down when the user makes a selection in the first. From there, the form would be able to submit both values to the PHP script.

Note that you should also provide something for users who have JavaScript disabled...

Hope this helps.
 
Back
Top