Switching between HTML and PHP
<html>
<body>
Here I am in HTML! <BR>
<?php
echo ”Now I'm in PHP! <BR>";
?>
Back to HTML! <BR>
</body>
</html>
HTML
PHP
Back to HTML
Note the PHP start and stop tags
Demo 2
PHP code is executed on the web server!
Previous slide
Next slide
Back to first slide
View graphic version