Uhmm.... well, you don't have to use print to display HTML. If you did there
would be no reason for the <? ?> tags. <? ?> switches between HTML (which is
not parsed by the interpreter and PHP code (which is interpreted).

Basically, print is used when you have to print a variable.

For instance name.php
<? print "<b>My name is $myname, and his name is $hisname</b>"; ?>

Is the same as name.php:
<b>
My name is <? print "$myname"; ?> and his name is <? print "$hisname"?>
</b>

If you have a ton of html that has some variables in it... just paste in
your html and where the variables (ie $name)  will be printed just insert <?
print "$name"; ?> between the HTML.

If this is still confusing to you, you should read a intro to PHP tutorial.


----- Original Message -----
From: Christopher Allen <[EMAIL PROTECTED]>
To: php <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 10:16 AM
Subject: [PHP] html -echo-print


> Hello,
>
>
> Is there any way around having to go back and backslash every quote in a
> html table that contains millions of quotes?
> I noticed that
>      <pre>
>      print "
>         his name's
>         jack";
>     </pre>
>
> works for a single quote, but not double....
>
> I would literally have a thousand quotes to back slash... My only other
> alternative is to take the table into Star Office and do a  replace on ".
>
> Thanks for any replies.
>
>
> Christopher C. M. Allen
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to