I'm wondering how to use PHP to fill out fields in a form automatically based on a single selection in a drop-down menu.
I have a form that pulls course data from a database. I have a drop down menu that lists all the courses a student can enroll in. Once they select the course they want, I want all the associated data to be filled out automatically in the other form fields (using data from the same database), so the student doesn't have to fill it all out.
Any suggestions?
Filling out fields
Moderator: General Moderators
- andym01480
- Forum Contributor
- Posts: 390
- Joined: Wed Apr 19, 2006 5:01 pm
Re: Filling out fields
That's client side - Javascript ( http://www.mattkruse.com/ has a dynamic form filling script)
you could use php to populate the option list from the db
or
use Ajax to grab and fill
you could use php to populate the option list from the db
or
use Ajax to grab and fill