Ajax Post Url
Posted: Wed Feb 04, 2009 6:37 pm
Hey guys,
I have a problem where i want to send the current page url to a php function using ajax however everytime there is a & or ? the php script reads this as another parameter and doesnt receive the correct value. For example: 'http://www.google.com.au/search?hl=en&q ... arch&meta='. From this url I can only get 'http://www.google.com.au/search' and everything else is ignored.
How can I send the url intact ignoring all ? and & or any other character I choose?
Thanks
I have a problem where i want to send the current page url to a php function using ajax however everytime there is a & or ? the php script reads this as another parameter and doesnt receive the correct value. For example: 'http://www.google.com.au/search?hl=en&q ... arch&meta='. From this url I can only get 'http://www.google.com.au/search' and everything else is ignored.
How can I send the url intact ignoring all ? and & or any other character I choose?
Thanks