You are here: Re: Backslashes from textbox forms are returned as double-backslashes. Why? « All PHP « IT news, forums, messages
Re: Backslashes from textbox forms are returned as double-backslashes. Why?

Posted by ImOk on 06/12/06 12:55

Obviously a \ is an escape character in literal strings. E.g. \n \r \t
and so on.

So something somewhere is escaping the \ in the path name otherwise
your path name may not come across correctly.

How are you "checking" $field1 and are you passing it as a query
string? You need to be more specific.



wylbur37 wrote:
> When using a form with an input textbox such as the following ...
>
> <input type="text" name="field1" size=30>
>
> I discovered that when a backslash (\) is typed into the textbox,
> when I later check the value (in $field1), I get *two* backslashes.
> For example, If I type ...
>
> c:\abc\xyz
>
> the $field1 variable will then have a value of ...
>
> c:\\abc\\xyz
>
> Why does this happen?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация