Thursday, 30 August 2012

Episode 3 : Integrating HTML with PHP


You will be better able to see how easily you can use HTML in the PHP program with the following practical example.

1. Modify the highlighted lines of firstprog.php:

<html>
<head>
<title>My First PHP Program</title>
</head>
<body>
<?php
echo "<h1>Hello Everyone! This is my first PHP program.<h1>";
echo “<h2>And I’m okay.</h2>”;
?>
</body>
</html>



2. Save your file and reload the page. Your screen should now look something like the one in Figure

Written by “Shojib”.

No comments:

Post a Comment