Re: html -echo-print

From: Date: Wed, 07 Feb 2001 19:29:28 +0000
Subject: Re: html -echo-print
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38587@lists.php.net to get a copy of this message
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 <callen@driver8.org> To: php <php-general@lists.php.net> 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: 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 > >

« previous php.general (#38587) next »