Code: Select all
<form method="post" action="getMessage.php">
<input type="text" name="message">
<input type="submit" value="Submit">
</form>Code: Select all
<?php
$message=$_POST['message'];
echo $message;
?>Sample Output: It\'s David\'s \"Dog\"
Why are the the quote being represented this way?
Is everyone's server like this? Or is this just the way my server is configured?
Thanks.
Sorry it seems I might have posted this is the wrong topic. Sorry in advance.