Page 1 of 1

variables pased to server with the $ sign

Posted: Sat Jul 24, 2004 5:03 pm
by pelegk2
i am passing to the server values
with chars like :

Code: Select all

<?php
~@#$%^*()_+-={}|][
?>
is it a problem?
for exapleL
will something like this:
1.php?file=#f,ldsf$rwer
won't it recognize "$rwer" as a varibale?
thnaks in advance
peleg

Posted: Sat Jul 24, 2004 5:28 pm
by kettle_drum
encode it first in base64 and then decode it again when you want the decoded version.

Posted: Sat Jul 24, 2004 10:46 pm
by feyd
or [php_man]urlencode[/php_man] the string if you are just concatenating it... :)