HTML and slashes.

From: Date: Tue, 17 Apr 2001 14:47:35 +0000
Subject: HTML and slashes.
Groups: php.general 
Request: Send a blank email to php-general+get-48974@lists.php.net to get a copy of this message
Hi. Considering PHP takes " 's " into consideration as part of the script, and adds a slash infront of them I need a way to overcome this. And second of all, I need a way to prevent HTML code from being seen, none the less used on the output. <? $space = " "; if( $submitfrm ) { echo "your entry will be added shortly."; $submitmsg = file( "gb.txt" ); $fp = fopen( "gb.txt", 'a' ); rewind($fp); fwrite( $fp, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td width=\"236\"><p><font size=\"1\"><b>$subject</b> : <a href=\"mailto:$email\">$name</a></td> </tr> <tr> <td width=\"236\"><font size=\"1\"><p>$submition</td> </tr> </table><br>" ); fclose( $fp ); } else { include ( "guestbooks.php" ); } ?> All help's welcome, since I need it.. :P -Owen

« previous php.general (#48974) next »