Welcome Guest, Not a member yet? Register   Sign In
Modifying a google map query string
#1

[eluser]brian88[/eluser]
When a user submits this form, I want to take "Orlando,+fl" in the query string and replace it with their city and state fields

So it would be...
maps.google.com/maps?hl=en&q=from:+city,+state+to:+Celina,+OH+45822&ie=UTF-8

Code:
<form action='https://maps.google.com/maps?hl=en&q=from:+Orlando,+fl+to:+Celina,+OH+45822&ie=UTF-8' method='get' accept-charset='utf-8'>
      <input type='text' name='city' value='City' />
      <input type='text' name='state' value='State' />
      <input type='submit' value='Get Directions'>
</form>

How can I go about doing this in code igniter? Or is it easier in jQuery?


Messages In This Thread
Modifying a google map query string - by El Forum - 07-13-2012, 01:52 PM
Modifying a google map query string - by El Forum - 07-13-2012, 02:48 PM
Modifying a google map query string - by El Forum - 07-13-2012, 03:21 PM
Modifying a google map query string - by El Forum - 07-13-2012, 03:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB