how to interperse HTML with PHP

[problem]

You want to intersperse HTML with PHP code.

[/problem]

[solution]

Just getting back to basics, this is a very simple demo
of how to implement PHP code along with HTML.

[/solution]

[example]

<html><head>....
<body>
<h1>Hello World</h1>
<?php if($_GET[runit]) { ?>
<b>This will get displayed if ?runit=yes is
appended to the web users request</b>

<?php } else { ?>

nothing to see here ... :)

<?php } ?>

<body><html>

[/example]

[reference]

[tags]Interperse HTML in PHP, PHP Coding School[/tags]

[/reference]

If you have found my website useful, please consider buying me a coffee below 😉

Leave a Reply

Your email address will not be published. Required fields are marked *