Re: HTML and slashes.
| From: | Johannes Janson | Date: | Tue, 17 Apr 2001 15:05:52 +0000 |
| Subject: | Re: HTML and slashes. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48976@lists.php.net to get a copy of this message | ||
Hi,
there is NO way of hiding the html from the user.
the browser can't output otherwise. You can only
try to make it difficult to get the source.
Where does the " 's " problem come in? More detail plz.
Is it a part of a text? Then try htmlspecialchars() or
htmlentities().
Johannes
""Dddogbruce (@home.com)"" <ddogbruce@home.com> schrieb im Newsbeitrag
news:3ADC5787.9AD6D6C@home.com...
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>