| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Submitting data in a form|
Is there a way to decode data usbmitted in form
| 8:59 am on Aug 10, 2005 (gmt 0)|
I am trying to create an online admin section where html can be edited on my site but whenever there is a ' or " or \ the submitted data comes out as \' or \" or \\...
[codes]<form action=test.php method=post>
comes out as:
Is there any way to decode this? I have tried urldecode() and htmlspecialchars() but they don't work...
| 9:18 am on Aug 10, 2005 (gmt 0)|
The addition means that you have addslashes on. To get rid of the \ simply
$no_slashes = stripslashes($variable);
| 9:24 am on Aug 10, 2005 (gmt 0)|
worked like a charm thanks for the quick reply
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2013 all rights reserved