Solved: PHP question

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

mstyers

Thread Starter
Joined
Jun 10, 2004
Messages
71
I am using php4 and php5.

To hide the actual variable information I am using gzcompress and base64_encode to create a string that is passed for the variable.

Doing this I get a string that may have special characters in it like a +, /, etc. I pass them to my script and use the $_GET to receive them. When I receive them the special characters are turned into blanks.

Ex. script.php?var=eJwrSiotSc5ILXIwLAbS+nJqU
$_GET['var'] = eJwrSiotSc5ILXIwLAbS nJqU

I have also tired to use the + to replace the + but get the same result.

Any idea how I can get around this?
 

mstyers

Thread Starter
Joined
Jun 10, 2004
Messages
71
I can't use the $_POST because I haven't posted yet.

I was able to resolve this using %2B for the + sign. 2B is the hex value for the + sign. Also, found that it has to be 2B and not 2b.

Ex. script.php?var=eJwrSiotSc5ILXIwLAbS%2BnJqU
$_GET['var'] = eJwrSiotSc5ILXIwLAbS+nJqU
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top