|
Posted by J.O. Aho on 02/14/06 19:25
Konrad wrote:
> Hello all, I'm a complete beginner, I tried to find an answer via google
> but it's not easy with my knowledge about php :)
>
> when a variable is sent via form and retrieved with $_POST['var'] eg:
>
> $var=$_POST['f_varname'];
>
> then all the " and ' and \\ characters are replaced with \" and \' and
> \\, how can I avoid this? And actually, why is this working this way ?
>
$var=stripslashes($_POST['f_varname']);
http://www.php.net/manual/en/function.stripslashes.php
//Aho
Navigation:
[Reply to this message]
|