PHP Special Character

Special Character
Sometimes when you have a text box, and need to make a confirmation page with the text
box, or when you want to show what text in you text box, you have had a character that
you don’t need.
Ex:andry’s fixa “quote”
The output is:andry\’s fixa \”quote\”

so you must remove a special character.

Here is the way in PHP

<?
echo stripslashes(htmlentities($string_textbox));
?>

This entry was posted on Monday, December 18th, 2006 at 4:22 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.