| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Submitting data in a form|
Is there a way to decode data usbmitted in form
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...
The addition means that you have addslashes on. To get rid of the \ simply
$no_slashes = stripslashes($variable);
worked like a charm thanks for the quick reply
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved