Assignment 6

PHP HTML

Today assignment is to use PHP logic to change the creation of HTML. From now on, all assignments will involve creation of a new program that will be named by assignment number . php

So todays program will be a new file called a6.php

You will be leaning how to use a For loop. Google “PHP For” and try to study what it does. If you cant figure it out let me know and I can give more instruction

Create a program that creates 10 line of html saying “hello”. So, it will look something like this:

<?php

echo “<html><body>”;

for …….

{

echo “hello<br>”;

}

echo “</body></html>”;

?>

You  will be able to access/run the program by executing www.tarielf.com/dev/a6.php

Leave a Reply

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