Jump to content

Recommended Posts

i want to create a form field where the input will get put into a google maps link...so i need to replace the spaces with +'s...for example if i input

 

3278 Blue Jay dr, scottsdale AZ 44559

 

it will eventually look like

 

http://maps.google.com/maps?saddr=3278+blue+jay+dr,+scottsdale+AZ+44559&hl=en

 

 

Link to comment
https://forums.phpfreaks.com/topic/153487-solved-replace-blanks-with-s/
Share on other sites

touche...

 

lol - i was actually looking for the server settings - thought you could choose which character replaces ' ' - too many times i see it use %20

 

funnily enough thats the way to go as in this case each and every response is pointless!!!

 

you need to submit the form with the get method for any search functionality worth its salt (want to be able to save searches) therefore you won't even get the chance to convert the search string until its received on the next page...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.