FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Back slash appears in form output

 


richard270384
Gday,

I'm sure this has to be something vrey simple because I have never had this problem before.

I have form which I am sending to a PHP script using POST but before (i'm pretty sure anyway) it reaches the PHP script, backslashes appear before any instances of " or '. For example:


Don't becomes Don\'t
Please "do" it becomes Please \"do\" it

It's only a small problem and I know I could remove the backslashes in PHP but I'm sure this is a problem with my form. Any suggestions?

Cheers,
Richard
DanielXP
Code:
$text = stripslashes($text);


That will remove the slashes.

Edit. Thats PHP
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.