Log in

View Full Version : Script to fill in form differently depending on which link is pressed



Brian_C_C
09-21-2007, 04:50 PM
I'm setting up a tourist destination website for the small town I live in, non-profit...

I need to create hyperlinks that will automatically fill out this form when you select them...


<form Action="http://www.mapquest.com/maps/map.adp" Method="get" Target="_blank">
<table cellpadding="3" cellspacing="0" border="0" style="font: 11px Arial,Helvetica;">
<tr><td colspan="2"><div align="center">Fill out and submit to retreive map</div></td></tr>
<tr><td colspan="2">Address/Intersection:</td></tr>
<tr><td colspan="2"><input type="text" name="address" size="20" maxlength="80"></td></tr>
<tr><td colspan="2">City:</td></tr>
<tr><td colspan="2"><input type="text" name="city" size="20" maxlength="80"></td></tr>
<tr><td>State:</td><td>ZIP Code:</td></tr>
<tr><td><input type="text" name="state" size="3" maxlength="2"></td><td><input type="text" name="zipcode" size="10" maxlength="12"></td></tr>
<tr><td colspan="2" style="text-align: center;"><input type="submit" value="Get Map"><input type="hidden" name="CID" value="lfmapwid"><input type="hidden" name="country" value="US">


Can you help... I just need to fill in the Address, City, and State Text Boxes by selecting HTML text hyperlinks....

I have a document I iframed into the document containing the form above.... it lists restaraunts with addresses... Eg

Pat's Pizza
401 W Some Street, Somewhere, AZ
ph 555-555-5555


I need the users to be able to select the address and have it fill in the address box on the form, the city, state, etc.

Anyways... any help would be great!