Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Submitting data in a form

Is there a way to decode data usbmitted in form



8:59 am on Aug 10, 2005 (gmt 0)

10+ Year Member

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 \\...

for example
[codes]<form action=test.php method=post>
<textarea><table><td width='400'>"hello"</td></table></textarea>[/codes]

comes out as:
<table><td width=\'400\'>\"hello\"</td></table>

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)

WebmasterWorld Senior Member 10+ Year Member

The addition means that you have addslashes on. To get rid of the \ simply

$no_slashes = stripslashes($variable);

Best regards
Michal Cibor


9:24 am on Aug 10, 2005 (gmt 0)

10+ Year Member

worked like a charm thanks for the quick reply

Featured Threads

Hot Threads This Week

Hot Threads This Month