Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Form Change

General discussions related to php

Moderators: macek, egami, gesf

Form Change

Postby jonnyphp » Wed Aug 08, 2012 5:52 am


I am wanting to create a dropdown box that when which ever item is selected changes the rest of the form to something more meaningful.


Dropdown consists of option1: Cars, Option2: Planes, Option3: Trains

So when user selects Cars, they get a form to fill in relevent to car information and changes for planes etc. Have tried searching the web but quite new to PHP so not sure what this method is called to search as were only getting back junk.

Any help would be greatly appreciated.

thanks in advance.
New php-forum User
New php-forum User
Posts: 6
Joined: Tue Jun 05, 2012 7:31 am

Re: Form Change

Postby freshnet » Fri Aug 10, 2012 5:00 am

Since you're changing the form before it's submitted, you will want to use jquery / javascript here instead of PHP. I'd suggest looking at the jquery html function
User avatar
php-forum Active User
php-forum Active User
Posts: 278
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Return to PHP General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.