faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 20 people (55%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I get PHP to create javascript that updates field 2 based on field 1 in a select box?

Jan 25th, 2000 05:15
Okke Tijhuis, Richard Kurth, Nathan Wallace, http://px.sklar.com/


See the "PX: PHP Code Exchange" site (http://px.sklar.com/)

Go to the HTML section and look at the following:

Dynamic Selectors by Leon Atkinson:
Builds JavaScript that updates the contents of one selector based on 
another