LzyDaz Designs
www.lzydaz.com
Bonnie Lincicome © 2012 All Rights Reserved
This page was last updated on December 06, 2008 20:50:09
Source Code for formTable
<?php //build browser input
$browsers = array ("Firefox", "Internet Explorer", "Opera", "Safari", "Chrome", "Other");
?>
<form method="post" action="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week5/success.php" id="testform">
<fieldset>
<legend>Contact Form</legend>
<table>
<tr>
<td><p><span class="note">*</span>Name:</p></td>
<td>
<input name="name" type="text" size="30" maxlength="150" value="<?php echo $name ?>" />
</td>
</tr>
<tr>
<td><p><span class="note">*</span>E-mail:</p></td>
<td>
<input name="email" type="text" size="30" maxlength="150" value="<?php echo $email ?>" />
</td>
</tr>
<tr>
<td><p><span class="note">*</span>Phone Number:</p></td>
<td>
<input name="phone" type="text" size="30" maxlength="150" value="<?php echo $phone ?>" />
</td>
</tr>
<tr>
<td><p>Select Your Browser:</p></td>
<td>
<?php
echo "<select name='browser'>";
foreach($browsers as $browser)
{
echo "<option value='$browser'>$browser</option>";
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td valign="top"><p><span class="note">*</span>Message:</p></td>
<td><textarea name="message" cols="30" rows="6"><?php echo $message ?></textarea></td>
</tr>
<tr><td></td> <td><input name="submit" type="submit" value="Send Message" /></td></tr>
</table>
</fieldset>
</form>
Source Code for Current Page
<?php $siteName = 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Contact Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/common/site.css" rel="stylesheet" type="text/css" />
<link href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week5/common/week5.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="head">
<p><?php echo $siteName; ?></p>
</div><!--close #head-->
<div id="wrap">
<div id="content">
<div id="bar-nav">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/bar-nav.php'); ?>
</div><!--close bar-nav-->
<div id="navcontainer">
<ul>
<li><a href="../week5.php" title="Return to Main">Main</a></li>
<li><a href="books.php" title="Table">Books</a></li>
<li class="last"><a href="dice.php" title="Dice Game Revised">Game</a></li>
</ul>
</div><!-- close navcontainer -->
<div id="contactForm">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/week5/includes/formTable.php'); ?>
</div><!--close #contactForm-->
</div><!--close #content-->
</div><!--close #wrap-->
<div id="foot">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/copyright.php'); ?>
</div><!--close #foot-->
<div id="source">
<?php echo date("T"); ?>
<hr />
<?php echo phpversion(); ?>
<hr />
<p>Source Code for formTable</p>
<?php show_source('includes/formTable.php'); ?>
<hr />
<p>Source Code for Current Page</p>
<?php show_source(basename($_SERVER['PHP_SELF'])); ?>
</div><!--close #source-->
</body>
</html>