PDA

View Full Version : How do you stop "\" being added when you submit forms?



Moh
13-01-2008, 09:41 PM
Well when you submit a form and display the infomation, when you use characters such as ' you get \'

Its realy annoying :(

Invent
13-01-2008, 09:42 PM
stripslashes()

Moh
13-01-2008, 09:52 PM
stripslashes()
Thanks +Rep

MountainDew
13-01-2008, 10:52 PM
<?php
$example = $_POST["example"];
$example = stripslashes($example);

// OR

$example = stripslashes($_POST["example"]);

?>

Want to hide these adverts? Register an account for free!