How do I remove escape characters from data?
<?php
$data = "I\'m the king of the castle";
echo stripslashes($data); //I'm the king of the castle
?>
More forms PHP Questions
What are magic quotes?How do I remove HTML tags from a string?
How do I check for an empty field in a form?
How can I check a value entered in a field on my form is a number?
How do I email the contents of a form to me?