I made a form on a website that I am creating. How would I make it so that the text field that the user enters into adds into the link? I have given the coding for my form:
Code:<form action="http://maps.google.com/maps" method="get"> <p> <label for="saddr">Your Address</label> <input type="text" name="saddr" id="saddr" value="" /> <input name="Submit" type="submit" value="Get Directions" target="_new" onClick="return frameBranding('http://maps.google.com/maps?saddr=' + saddr.text + '&daddr=744+Broad+Street+Newark+NJ', 'brand.htm', 'rows');"/> <input type="hidden" name="daddr" value="744 Broad Street Newark, NJ" /> <input type="hidden" name="hl" value="en" /> </p> </form>



Reply With Quote

Bookmarks