Jump to content

[SOLVED] replace blanks with +'s


dadamssg

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.