coding

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
chumy
Forum Newbie
Posts: 2
Joined: Tue Nov 30, 2004 10:58 am

coding

Post by chumy »

I have a table in a database with title and functions fields and want to create a php form with a drop down selection using title, that when a selection is made, will automatically fill a second form field also called function. I need help on the best way to write this php code.
Thank you.
User avatar
protokol
Forum Contributor
Posts: 353
Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:

Post by protokol »

The php code is simple. You just query the database and return values for those 2 columns. The rest of your script will use javascript to do the filling of form values when you click on an item from the dropdown.
chumy
Forum Newbie
Posts: 2
Joined: Tue Nov 30, 2004 10:58 am

Post by chumy »

Thank you Protokol,
I am really new to PHP coding; although I have the basic understanding. I need help with the javascript that can do it.
Post Reply