PHP, like VBScript and Cold Fusion, is usually embedded in HTML documents.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/html4/strict.dtd"> <html> <head> <title>Address List</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8;"> <meta name="version" content="0.0.1"> <style type="text/css" media="screen">@import "/style/main.css";</style> </head> <body> <strong><?php print "<h1>Address List</h1>" ; print "<table>" ; print "<tr><td colspan=\"2\">Schmidlapp, Harvey</td></tr>" ; print "<tr><td colspan=\"2\">1234 Main Street<br>Juneau, AK 99801</td></tr>" ; print "<tr><td>907-123-4567</td><td>907-987-6543</td></tr>" ; print "<tr><td colspan=\"2\"><hr></td></tr>" ; print "<tr><td colspan=\"2\">Zwimmer, Judd</td></tr>" ; print "<tr><td colspan=\"2\">4321 Side Street<br>Juneau, AK 99801</td></tr>" ; print "<tr><td>907-123-4568</td><td>907-987-5497</td></tr>" ; print "<tr><td colspan=\"2\"><hr></td></tr>" ; print "</table>" ; ?></strong> </body> </html>
Needless to say, this is pretty lame code and you didn't gain anything by using PHP except complexity.
View Results of Code in Browser
Copyright © 2003
Henry H. Hartley
All Rights Reserved