Question
Trying to autofill form field based on other form field
Hey all:
Posted this to general discussion but maybe this is the place for it. Suppose I have a PHP/MySQL setup to where users registering on a website must enter their address. Now I could simply require everyone to enter name, address, city, state, and ZIP code, but that would be a lot of trouble. Instead, I'd like to have them enter name, address, and ZIP code, then have the application look up the ZIP code in another database and enter the city and state accordingly. I'm reading "Dreamweaver 8, the Missing Manual". The author refers to this function (form variables) but states that the function would generally be used on two separate pages, such as a search and result setup. Does anyone know how the "results" can be made to appear dynamically in another field of the form?
Thanks,
Ken Ha Quad
Posted this to general discussion but maybe this is the place for it. Suppose I have a PHP/MySQL setup to where users registering on a website must enter their address. Now I could simply require everyone to enter name, address, city, state, and ZIP code, but that would be a lot of trouble. Instead, I'd like to have them enter name, address, and ZIP code, then have the application look up the ZIP code in another database and enter the city and state accordingly. I'm reading "Dreamweaver 8, the Missing Manual". The author refers to this function (form variables) but states that the function would generally be used on two separate pages, such as a search and result setup. Does anyone know how the "results" can be made to appear dynamically in another field of the form?
Thanks,
Ken Ha Quad
