In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steven Cayford) wrote:
> You can tell php to treat quotes as text by escaping > them: putting a \ in front of them like this: > > echo "<table border=\"0\">"; > > Or you could drop out of php mode entirely to do your html like this: > > <?php > ...php stuff here ... > ?> > > <table border="0"> > > <?php > ...more php stuff... > ?> > > One of these methods should get you going. There's also the heredoc option (variable interpolation, no need to escape of quotes, no jumping back and forth between PHP mode and HTML mode) <http://www.php.net/manual/language.types.string.php>: echo<<<EOF; <table border="$bordersize"> <tr> <td>$mycontent</td> <tr> </table> <style type="text/css"> .$classname { margin: 10px; background-color: black; color: white; } </style> <p class="$classname">Blah blah...</p> EOF; -- CC -- 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]