faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 9 people (44%) answered Yes
Recently 4 of 9 people (44%) answered Yes

Entry

when passing a '\' through HTTP_GET_VARS it becomes '//' ? why and how to solve?

Dec 26th, 2005 06:31
Praveen Kumar Kukkapalli, Don Patch, Nicholas Gobin,


'\' is used as an escape charector, that means it will not try to parse
the immediate charector if it finds '\' in the string, if you want to
use '\' then you should pass '\\'.
If you mean to send the character
" \ " which is usually used as an
escape for other characters then
you must send it as " \\ " and then
it will be sent as \ and not as an
escape. Not sure if this is what 
you were looking for, but I hope
it helps.