echo "" problem NEW

From: Date: Wed, 09 Jan 2002 08:00:55 +0000
Subject: echo "" problem NEW
Groups: php.general 
Request: Send a blank email to php-general+get-79860@lists.php.net to get a copy of this message
Hi again! Thanks for the reply! I still have another question: I want to create a recycleable code by printing a set of html code which I copied and paste from my html edittor. however because there are lots of quotation marks on the html code it result an error page. here is part of the html code: <table border="0" cellpadding="0" cellspacing="0" width="639"> <tr> <td><img src="img_heading/spacer.gif" width="25" height="1" border="0"></td> </tr> <tr> <td colspan="11"><img name="index_r1_c1" src="img_heading/index_r1_c1.gif" width="639" height="5" border="0"></td> <td><img src="img_heading/spacer.gif" width="1" height="5" border="0"></td> </tr> <tr> <td rowspan="5"><img name="index_r2_c1" src="img_heading/index_r2_c1.gif" width="25" height="43" border="0"></td> </table> ...etc so I tired to use (echo) like this: echo "<table border="0" cellpadding="0" cellspacing="0" width="639"> <tr> <td><img src="img_heading/spacer.gif" width="25" height="1" border="0"></td> </tr> <tr> <td colspan="11"><img name="index_r1_c1" src="img_heading/index_r1_c1.gif" width="639" height="5" border="0"></td> <td><img src="img_heading/spacer.gif" width="1" height="5" border="0"></td> </tr> <tr> <td rowspan="5"><img name="index_r2_c1" src="img_heading/index_r2_c1.gif" width="25" height="43" border="0"></td> </table>"; but it DOES NOT WORK. How do I get way with all of the quotation marks???? thank for all the help. Dani

« previous php.general (#79860) next »