HTML can be used in a php file.
if displaying some text in the middle of a script, for example displaying that text only if $string is equal to 123:
PHP Code:
<?php
if ($string == 123){
echo "<b>the variable string is set to 123</b>";
}
?>
or, you can do this to display the text regardless of what a variable is:
PHP Code:
<html><body>
<b>here's some text that always displays.</b>
<?php
//put your php code here
?>
</body></html>
|