Jump to content

[SOLVED] Mixing html and php without using echo


rotarypot

Recommended Posts

You could just end the PHP and then insert your HTML... etc..

 

<?php
//php stuff
?>
<!-- HTML STUFF -->
<?php
//more php stuff
?>

 

And, if you have an if statement you could do this:

<?php
if (condition) {
?>
<!-- HTML Stuff -->
<?php
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.