I have an input box which contains a path like c:\test\temp
when I submit the form and request the field, it doubles the backslash so I get
c:\\test\\temp, and if I'll post again I'll get c:\\\\test\\\\temp.
why is that , and what can I do to prevent this from happening?
btw - I did the same thing with asp and it didn't double the "\" .
Thanks
Guy
backslash question
Moderator: General Moderators
its an option in the php.ini iirc
to remove them simply use stripslashes :
to remove them simply use stripslashes :
Code: Select all
<form method="get">
<input type="text" name="someText" value="<? print stripslashes($_GETї'someText']); ?>">
<input type="submit">
</form>