\n"); echo("PHP Welcome Message\n\n"); echo("\n\n"); echo("

PHP Welcome Message



\n\n"); } function request_html() { echo("
\n"); echo("Please enter your name :\n"); echo("\n"); echo("\n"); echo("
\n\n"); } function response_html($username) { $timenow = date("h:i:s a T D m/d/Y"); echo("
\n");
  echo("Hello $username, welcome to this web page !\n\n");
  echo("Time is now $timenow.\n");
  echo("
\n\n"); } function footer_html() { echo("
\n"); echo("\n"); echo("Program Source
\n"); echo("\n"); } # main program # if no parameter, print request html # else print response html if (!$username) { header_html(); request_html(); footer_html(); } else { header_html(); response_html($username); footer_html(); } ?>