> Anyone has an idea why stripslashes(); doesn't strip slashes? > I have a form that when it's submitted with a ' sign ads slashes to the > submit results. > I'm taking the variable and sending it through stripslashes(); and yet > the slashes remain.
You are perhaps thinking it does in-place modification of the argument? ie. stripslashes($a); echo $a; That's not how it works. It returns the stripped string. ie. $a = stripslashes($a); echo $a; -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]