variables pased to server with the $ sign

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

variables pased to server with the $ sign

Post 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
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

encode it first in base64 and then decode it again when you want the decoded version.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

or [php_man]urlencode[/php_man] the string if you are just concatenating it... :)
Post Reply