Page 1 of 1

Normal HTML in PHP ...

Posted: Tue Dec 07, 2004 3:32 pm
by Terencentanio
Yo.

How would I go about putting HTML between a PHP block that is the same? e.g

Code: Select all

if(if statement){

 -- some php code --

-- php tag breaks so I can enter HTML --

-- html --

-- re-open php tag --

-- continue php code --
Thanks in advance :D

Posted: Tue Dec 07, 2004 3:37 pm
by TwiSteD

Code: Select all

<?php
if ( $some_if_statement )
{
	$some_code
?>
<html>
enter HTML here...
</html>
<?php
	$finish_off_the_if_statement
}
?>

Posted: Tue Dec 07, 2004 3:40 pm
by Terencentanio
Thankies.