Location: PHPKode > projects > Akasha > contact_add.php
<?

if ($akashaID == $ID) {

	include ("includes/global.inc"); 	// Global Variables
	include ("includes/functions.inc"); 	// Global Functions
	include ("includes/head.inc"); 		// Standart Headers
	include ("stylesheets/homestyle.inc"); 	// Stylesheets

  echo "</head>\n";
  echo "<body bgcolor='#FFFFFF' text='#000000' link='#3457A9' vlink='#3457A9' alink='#009966'>\n";
  echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
  echo "  </tr>\n";
  echo "  <tr>\n";
  echo "    <td valign='top'>\n";
  echo "      <table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
  echo "        <tr bgcolor='#D1D1D1'>\n";
  echo "          <td align='left'><i><font color='#304167'>Add an Entry</font></i></td>\n";
  echo "  		<td align='right'><font color='304167'><a href='addressbook.php?ID=$ID'>Return</a></font></td>\n";
  echo "        </tr>\n";
  echo "      </table>\n";
  echo "      <form method='post' action='contact_insert.php?ID=$ID'>\n";
  echo "        <table align='center'width='550' border='0' cellspacing='0' cellpadding='0' bgcolor='#999999'>\n";
  echo "          <tr>\n";
  echo "            <td>\n";
  echo "              <table width='550' border='0' cellspacing='0' cellpadding='0'>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><font color='#304167'><b>Last Name</b></font></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtlast' class='stiltextfield' value='$txtlast'>\n";
  echo "          				</td>\n";
  echo "                  <td width='126'><font color='#304167'><b>First Name</b></font></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtfirst' class='stiltextfield' value='$txtfirst'>\n";
  echo "          				</td>\n";
  echo "                </tr>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><b><font color='#304167'>E-mail</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtemail' class='stiltextfield' value='$txtemail'>\n";
  echo "          				</td>\n";
  echo "                  <td width='126'><b><font color='#304167'>Company</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtcompany' class='stiltextfield' value='$txtcompany'>\n";
  echo "          				</td>\n";
  echo "                </tr>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><b><font color='#304167'>Work Number</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtwork' class='stiltextfield' value='$txtwork'>\n";
  echo "          </td>\n";
  echo "                  <td width='126'><b><font color='#304167'>Home Number</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txthome' class='stiltextfield' value='$txthome'>\n";
  echo "          </td>\n";
  echo "                </tr>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><b><font color='#304167'>Fax Number</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtfax' class='stiltextfield' value='$txtfax'>\n";
  echo "          </td>\n";
  echo "                  <td width='126'><b><font color='#304167'>Cel Number</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtmobile' class='stiltextfield' value='$txtmobile'>\n";
  echo "          </td>\n";
  echo "                </tr>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><b><font color='#304167'>Address 1</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtaddress1' class='stiltextfield' value='$txtaddress1'>\n";
  echo "          </td>\n";
  echo "                  <td width='126'><b><font color='#304167'>Address 2</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtaddress2' class='stiltextfield' value='$txtaddress2'>\n";
  echo "          </td>\n";
  echo "                </tr>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><b><font color='#304167'>City</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtcity' class='stiltextfield' value='$txtcity'>\n";
  echo "          </td>\n";
  echo "                  <td width='126'><b><font color='#304167'>State</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtstate' class='stiltextfield' value='$txtstate'>\n";
  echo "          </td>\n";
  echo "                </tr>\n";
  echo "                <tr bgcolor='#FFFFFF'>\n";
  echo "                  <td width='126'><b><font color='#304167'>Zip</font></b></td>\n";
  echo "                  <td width='398'>\n";
  echo "                    <input type='text' name='txtzip' class='stiltextfield' value='$txtzip'>\n";
  echo "          </td>\n";
  echo "                  <td align='center' width='398' colspan='2'>\n";
  echo "                    <input type='submit' name='Submit' value='Save'>\n";
  echo "          </td>\n";
  echo "                </tr>\n";
  echo "              </table>\n";
  echo "            </td>\n";
  echo "          </tr>\n";
  echo "        </table>\n";
  echo "      </form>\n";
  echo "    </td>\n";
  echo "  </tr>\n";
  echo "</table>\n";
  echo "</body>\n";
  echo "</html>\n";

} else {
		Header("Location: main.php?error_code=1");
}

?>
Return current item: Akasha