Dynamic PHP page creation : HTML « HTML « PHP






Dynamic PHP page creation

 
<?
    $site_title = "title";
    $bg_color = "white";
    $user_name = "Name";
?>

<html>
<head>
<title><? print $site_title; ?></title>
</head>
<body bgcolor="<? print $bg_color; ?>" >
<?
    print "
    PHP | ".date("F d, Y")." <br>
    Greetings, $user_name! <br>
    ";
?>
</body>
</html>
  
  








Related examples in the same category

1.Display of HTML using PHP code
2.Dynamic Generation of Tags from an Array
3.Dynamic HTML tags
4.Dynamic date insertion
5.Example: Creating an XHTML document from PHP
6.Output Control
7.Output image tag
8.Output image tag with global path value
9.The Header