Filling out fields

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
junestag
Forum Commoner
Posts: 39
Joined: Tue Sep 18, 2007 5:14 pm
Location: Alaska
Contact:

Filling out fields

Post by junestag »

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?
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

Re: Filling out fields

Post by andym01480 »

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