Page 1 of 1
coding
Posted: Mon Dec 06, 2004 4:32 pm
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.
Posted: Mon Dec 06, 2004 5:02 pm
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.
Posted: Mon Dec 06, 2004 5:14 pm
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.