For some unknown reason, when ever i enter a word that has a ' in it such as "Can't" it will display as "Can\'t" Now, my question is, How do i stop this from happening because it's becoming rather irratating now. Any help will be appreciated. Thanks.
i think your server have magic quotes enabled http://www.php.net/magic_quotes you can disable magic quotes or you can use stripslashes <?php if(get_magic_quotes_gpc()){ $_GET['variable'] = stripslashes($_GET['variable']); $_POST['variable2'] = stripslashes($_POST['variable2']); } ?> PHP:
lets say, $var is the variable. try this code $newvar = stripslashes($var); PHP: This will remove slashes from the string. Thanks, hope it helps.
It turns out that my server, did infact, have Magic Quotes enabled, i've now disabled it and the problem seems to be resolved. Thanks for your speedy responses.