Normal HTML in PHP ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Terencentanio
Forum Commoner
Posts: 27
Joined: Mon Dec 06, 2004 10:32 am
Location: England

Normal HTML in PHP ...

Post 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
TwiSteD
Forum Newbie
Posts: 4
Joined: Wed Dec 01, 2004 5:19 pm
Contact:

Post by TwiSteD »

Code: Select all

<?php
if ( $some_if_statement )
{
	$some_code
?>
<html>
enter HTML here...
</html>
<?php
	$finish_off_the_if_statement
}
?>
Terencentanio
Forum Commoner
Posts: 27
Joined: Mon Dec 06, 2004 10:32 am
Location: England

Post by Terencentanio »

Thankies.
Post Reply