View Full Version : form contents accesible?

07-15-2003, 12:15 AM

Complete newbie here, so any help is much appreciated.

Is it possible to determine the contents of a form field prior to actually submitting a form?

For example, say I have a form that gathers property info such as house number, street name, city name, etc...

Is it possible to gradually build a querystring with elements of a form (to use in a hyperlink), as the values for each field are entered?

Thank you,

07-15-2003, 12:20 AM
hyefive -

hey, it's 2003 - everything is possible. :D

Since building a querystring is exactly what an HTML form (method=get) does for you, automatically, the obvious question is: why do this programmatically (JS)?

07-15-2003, 12:30 AM
Aha! I wish there was a way to push through the blur and into the light of "everything's possible".

Thank you for the prompt reply.

My problem with using method=get is that this little subtask of mine is within another form. Like this:

This form collects a bunch of property info, as described. If the user entering the info doesn't know the property's zip code, I need to provide a link or something so they can click on it and determine the zip. Like a link to Yahoo Maps or MapQuest or something with querystring attached that has the house number and street name and city name in it so they don't have to re-enter the fields over again.

Does that make sense?

Thanks again,

07-15-2003, 12:46 AM
Not an expert on this - but I know of others who have used the Postal Service's own Web Tools service to handle address lookups (including zipcodes). I'd guess their database is pretty detailed - jeez, you'd hope so - and their interface is probably user-friendly. More at (login required).