Jump to content

URL Variables


Universeman

Recommended Posts

Hey everyone, I seem to have a slight problem with handling URL variables when using GET on a form.

 

My PHP script takes an input from the user in the form of a url. As it gets passed to itself, the URL becomes malformed (but the scrpit works just fine).

 

Example:

User input in an input named 'url':

http://www.google.com/

URL output after execution via GET:

http://www.mysite.com/?url=http%3A%2F%2Fwww.google.com%2F

 

What I really want is this to show up in the URL instead:

http://www.mysite.com/?url=http://www.google.com/

 

How can I accomplish this?

Link to comment
https://forums.phpfreaks.com/topic/192900-url-variables/
Share on other sites

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.