I basicly need a way to print large amounts of html script to a specific portion of the screen. I tried this: //my code in <body> section PHP code: <p> <?PHP if ($vartest === 1) { $mystring = <<<test This is a test <p> test paragraph </p> test; echo ("$mystring"); } ?> </p> Code (markup): It gives an error: 'unexpected $end' or something like that if I use the echo command. Why is this? Thanks. ~imozeb
You need the closing test; to be at the start of the line for it to work with no spaces before it like so <p> <?PHP if ($vartest === 1) { $mystring = <<<test This is a test <p> test paragraph </p> test; echo ("$mystring"); } ?> </p> PHP:
Oh! Okay. I thought PHP script ignored whitespace but I guess this one command is the exception. Thanks.