0

Get Directions Using a Form

Hi

I was using a simple form with google maps for my users to get directions, this worked fine but my client now wants to use Yahoo Maps.

Can anyone tell me how I need to change the form code for this to work?

My current code looks like this:

CODE
<form action="http://maps.google.com/maps" method="get"> Your Postcode:

<input style="width: 8em;" name="saddr" type="text" /> <input name="daddr" type="hidden" value="53.798072,-1.76528" /> <input type="submit" value="Get Directions" /> </form>

by
1 Reply
  • Found the answer to this now, just so its on the forum its here

    CODE
    <form action="http://uk.maps.yahoo.com/" method="get"> Your Postcode:

    <input style="width: 8em;" name="q1" type="text" /> <input name="q2" type="hidden" value="BD8 8ER" /><input name="ard" type="hidden" value="1" /> <input type="submit" value="Get Directions" /> </form>



    QUOTE (jasonhutchinson32@... @ Feb 3 2010, 04:09 AM) <{POST_SNAPBACK}>
    Hi

    I was using a simple form with google maps for my users to get directions, this worked fine but my client now wants to use Yahoo Maps.

    Can anyone tell me how I need to change the form code for this to work?

    My current code looks like this:

    CODE
    <form action="http://maps.google.com/maps" method="get"> Your Postcode:

    <input style="width: 8em;" name="saddr" type="text" /> <input name="daddr" type="hidden" value="53.798072,-1.76528" /> <input type="submit" value="Get Directions" /> </form>
    0
  • I'm glad you found the answer and thanks for posting it back to the forums in case someone else has a similar request.

    - Jon
    0

Recent Posts

in General Discussion at YDN