Data Base: MOOSEDATABASE
UserName: MOOSEUSERNAME
Password: MOOSEPASSWORD
Table Name: MOOSETABLENAME
Create Record Form: MOOSEFORMNAME01.php
MOOSEFORMNAME
Connector to the database: conect/MOOSEMESSAGECONNECT 82
Name of Site: MOOSENAMEOFSITE
Email: MOOSEEMAILERFORAUTO
Host:  MOOSEHOST
Creator: MOOSECREATOR
Crazy Username: MOOSECRAZZYUSERNAME
Crazy Password: MOOSECRAZYPASSWORD
Post:  postMOOSEFORMNAME.php 197
Get:  getMOOSEFORMNAME.php 107
FearDearg.css 286
Crazy Pages Users: MOOSETABLENAMEcz.php 2270
Authorize Net Script:  MOOSEFORMNAMEAut.php 3652


MOOSEFILED01 = MOOSELABEL01
MOOSEFILED02 = MOOSELABEL02
MOOSEFILED03 = MOOSELABEL03
MOOSEFILED04 = MOOSELABEL04
MOOSEFILED05 = MOOSELABEL05
MOOSEFILED06 = MOOSELABEL06
MOOSEFILED07 = MOOSELABEL07
MOOSEFILED08 = MOOSELABEL08
MOOSEFILED09 = MOOSELABEL09
MOOSEFILED10 = MOOSELABEL10
MOOSEFILED11 = MOOSELABEL11
MOOSEFILED12 = MOOSELABEL12
MOOSEFILED13 = MOOSELABEL13
MOOSEFILED14 = MOOSELABEL14
MOOSEFILED15 = MOOSELABEL15
MOOSEFILED16 = MOOSELABEL16
MOOSEFILED17 = MOOSELABEL17
MOOSEFILED18 = MOOSELABEL18
MOOSEFILED19 = MOOSELABEL19
MOOSEFILED20 = MOOSELABEL20

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
########################          Create Table MOOSETABLENAME in Database    ########
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

CREATE TABLE `MOOSETABLENAME` (
`id` int(11) NOT NULL auto_increment,
`MOOSEFILED01` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED02` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED03` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED04` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED05` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED06` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED07` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED08` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED09` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED10` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED11` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED12` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED13` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED14` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED15` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED16` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED17` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED18` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED19` varchar(250) NULL DEFAULT NULL,
`MOOSEFILED20` varchar(250) NULL DEFAULT NULL,

`ip` varchar(250) NULL DEFAULT NULL,
`todae` varchar(250) NULL DEFAULT NULL,
 PRIMARY KEY  (`id`)
)

CREATE TABLE `MOOSETABLENAMEUsers` (
`id` int(11) NOT NULL auto_increment,
`FD_First` varchar(250) NULL DEFAULT NULL,
`FD_Last` varchar(250) NULL DEFAULT NULL,
`FD_Username` varchar(250) NULL DEFAULT NULL,
`FD_Password` varchar(250) NULL DEFAULT NULL,
`FD_Email` varchar(250) NULL DEFAULT NULL,
`ip` varchar(250) NULL DEFAULT NULL,
`todae` varchar(250) NULL DEFAULT NULL,
 PRIMARY KEY  (`id`)
)


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################          MOOSEMESSAGECONNECT         ########################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


<link rel="stylesheet" href="feardearg.css">
<?php
$todae=date ("Y/m/d-G:i");
$ip = getenv('REMOTE_ADDR');
$headercolor="#000000";
$colorodd="#ffffff";
$coloreven="#cccccc";
$hostname = "localhost";
$username = "MOOSEUSERNAME";
$password = "MOOSEPASSWORD";
$dbName = "MOOSEDATABASE";
$conn = mysql_connect($hostname, $username, $password, $dbName
);
if (!$conn)
{
echo ("You are not Authorized to view this page.");
}
?>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################          getMOOSEFORMNAME.php    ########################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<?php
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'Off');
ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/error_log');
$code=$_GET['code'];
$id=$_GET['id'];
$page=$_GET['page'];
$MOOSEFILED01=$_GET['MOOSEFILED01'];
$MOOSEFILED02=$_GET['MOOSEFILED02'];
$MOOSEFILED03=$_GET['MOOSEFILED03'];
$MOOSEFILED04=$_GET['MOOSEFILED04'];
$MOOSEFILED05=$_GET['MOOSEFILED05'];
$MOOSEFILED06=$_GET['MOOSEFILED06'];
$MOOSEFILED07=$_GET['MOOSEFILED07'];
$MOOSEFILED08=$_GET['MOOSEFILED08'];
$MOOSEFILED09=$_GET['MOOSEFILED09'];
$MOOSEFILED10=$_GET['MOOSEFILED10'];
$MOOSEFILED11=$_GET['MOOSEFILED11'];
$MOOSEFILED12=$_GET['MOOSEFILED12'];
$MOOSEFILED13=$_GET['MOOSEFILED13'];
$MOOSEFILED14=$_GET['MOOSEFILED14'];
$MOOSEFILED15=$_GET['MOOSEFILED15'];
$MOOSEFILED16=$_GET['MOOSEFILED16'];
$MOOSEFILED17=$_GET['MOOSEFILED17'];
$MOOSEFILED18=$_GET['MOOSEFILED18'];
$MOOSEFILED19=$_GET['MOOSEFILED19'];
$MOOSEFILED20=$_GET['MOOSEFILED20'];
$MOOSEFILED01=strip_tags($MOOSEFILED01, '<p>, <br>');
$MOOSEFILED02=strip_tags($MOOSEFILED02, '<p>, <br>');
$MOOSEFILED03=strip_tags($MOOSEFILED03, '<p>, <br>');
$MOOSEFILED04=strip_tags($MOOSEFILED04, '<p>, <br>');
$MOOSEFILED05=strip_tags($MOOSEFILED05, '<p>, <br>');
$MOOSEFILED06=strip_tags($MOOSEFILED06, '<p>, <br>');
$MOOSEFILED07=strip_tags($MOOSEFILED07, '<p>, <br>');
$MOOSEFILED08=strip_tags($MOOSEFILED08, '<p>, <br>');
$MOOSEFILED09=strip_tags($MOOSEFILED09, '<p>, <br>');
$MOOSEFILED10=strip_tags($MOOSEFILED10, '<p>, <br>');
$MOOSEFILED11=strip_tags($MOOSEFILED11, '<p>, <br>');
$MOOSEFILED12=strip_tags($MOOSEFILED12, '<p>, <br>');
$MOOSEFILED13=strip_tags($MOOSEFILED13, '<p>, <br>');
$MOOSEFILED14=strip_tags($MOOSEFILED14, '<p>, <br>');
$MOOSEFILED15=strip_tags($MOOSEFILED15, '<p>, <br>');
$MOOSEFILED16=strip_tags($MOOSEFILED16, '<p>, <br>');
$MOOSEFILED17=strip_tags($MOOSEFILED17, '<p>, <br>');
$MOOSEFILED18=strip_tags($MOOSEFILED18, '<p>, <br>');
$MOOSEFILED19=strip_tags($MOOSEFILED19, '<p>, <br>');
$MOOSEFILED20=strip_tags($MOOSEFILED20, '<p>, <br>');
$MOOSEFILED01=stripslashes($MOOSEFILED01);
$MOOSEFILED02=stripslashes($MOOSEFILED02);
$MOOSEFILED03=stripslashes($MOOSEFILED03);
$MOOSEFILED04=stripslashes($MOOSEFILED04);
$MOOSEFILED05=stripslashes($MOOSEFILED05);
$MOOSEFILED06=stripslashes($MOOSEFILED06);
$MOOSEFILED07=stripslashes($MOOSEFILED07);
$MOOSEFILED08=stripslashes($MOOSEFILED08);
$MOOSEFILED09=stripslashes($MOOSEFILED09);
$MOOSEFILED10=stripslashes($MOOSEFILED10);
$MOOSEFILED11=stripslashes($MOOSEFILED11);
$MOOSEFILED12=stripslashes($MOOSEFILED12);
$MOOSEFILED13=stripslashes($MOOSEFILED13);
$MOOSEFILED14=stripslashes($MOOSEFILED14);
$MOOSEFILED15=stripslashes($MOOSEFILED15);
$MOOSEFILED16=stripslashes($MOOSEFILED16);
$MOOSEFILED17=stripslashes($MOOSEFILED17);
$MOOSEFILED18=stripslashes($MOOSEFILED18);
$MOOSEFILED19=stripslashes($MOOSEFILED19);
$MOOSEFILED20=stripslashes($MOOSEFILED20);

$MOOSEFILED01=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED01);
$MOOSEFILED02=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED02);
$MOOSEFILED03=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED03);
$MOOSEFILED04=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED04);
$MOOSEFILED05=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED05);
$MOOSEFILED06=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED06);
$MOOSEFILED07=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED07);
$MOOSEFILED08=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED08);
$MOOSEFILED09=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED09);
$MOOSEFILED10=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED10);
$MOOSEFILED11=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED11);
$MOOSEFILED12=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED12);
$MOOSEFILED13=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED13);
$MOOSEFILED14=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED14);
$MOOSEFILED15=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED15);
$MOOSEFILED16=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED16);
$MOOSEFILED17=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED17);
$MOOSEFILED18=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED18);
$MOOSEFILED19=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED19);
$MOOSEFILED20=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED20);
?>

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################            postMOOSEFORMNAME.php           ########################
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<?php
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'Off');
ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/error_log');
$id=$_POST['id'];
$submit=$_POST['submit'];
$MOOSEFILED01=$_POST['MOOSEFILED01'];
$MOOSEFILED02=$_POST['MOOSEFILED02'];
$MOOSEFILED03=$_POST['MOOSEFILED03'];
$MOOSEFILED04=$_POST['MOOSEFILED04'];
$MOOSEFILED05=$_POST['MOOSEFILED05'];
$MOOSEFILED06=$_POST['MOOSEFILED06'];
$MOOSEFILED07=$_POST['MOOSEFILED07'];
$MOOSEFILED08=$_POST['MOOSEFILED08'];
$MOOSEFILED09=$_POST['MOOSEFILED09'];
$MOOSEFILED10=$_POST['MOOSEFILED10'];
$MOOSEFILED11=$_POST['MOOSEFILED11'];
$MOOSEFILED12=$_POST['MOOSEFILED12'];
$MOOSEFILED13=$_POST['MOOSEFILED13'];
$MOOSEFILED14=$_POST['MOOSEFILED14'];
$MOOSEFILED15=$_POST['MOOSEFILED15'];
$MOOSEFILED16=$_POST['MOOSEFILED16'];
$MOOSEFILED17=$_POST['MOOSEFILED17'];
$MOOSEFILED18=$_POST['MOOSEFILED18'];
$MOOSEFILED19=$_POST['MOOSEFILED19'];
$MOOSEFILED20=$_POST['MOOSEFILED20'];
$MOOSEFILED01=strip_tags($MOOSEFILED01, '<p>, <br>');
$MOOSEFILED02=strip_tags($MOOSEFILED02, '<p>, <br>');
$MOOSEFILED03=strip_tags($MOOSEFILED03, '<p>, <br>');
$MOOSEFILED04=strip_tags($MOOSEFILED04, '<p>, <br>');
$MOOSEFILED05=strip_tags($MOOSEFILED05, '<p>, <br>');
$MOOSEFILED06=strip_tags($MOOSEFILED06, '<p>, <br>');
$MOOSEFILED07=strip_tags($MOOSEFILED07, '<p>, <br>');
$MOOSEFILED08=strip_tags($MOOSEFILED08, '<p>, <br>');
$MOOSEFILED09=strip_tags($MOOSEFILED09, '<p>, <br>');
$MOOSEFILED10=strip_tags($MOOSEFILED10, '<p>, <br>');
$MOOSEFILED11=strip_tags($MOOSEFILED11, '<p>, <br>');
$MOOSEFILED12=strip_tags($MOOSEFILED12, '<p>, <br>');
$MOOSEFILED13=strip_tags($MOOSEFILED13, '<p>, <br>');
$MOOSEFILED14=strip_tags($MOOSEFILED14, '<p>, <br>');
$MOOSEFILED15=strip_tags($MOOSEFILED15, '<p>, <br>');
$MOOSEFILED16=strip_tags($MOOSEFILED16, '<p>, <br>');
$MOOSEFILED17=strip_tags($MOOSEFILED17, '<p>, <br>');
$MOOSEFILED18=strip_tags($MOOSEFILED18, '<p>, <br>');
$MOOSEFILED19=strip_tags($MOOSEFILED19, '<p>, <br>');
$MOOSEFILED20=strip_tags($MOOSEFILED20, '<p>, <br>');
$MOOSEFILED01=stripslashes($MOOSEFILED01);
$MOOSEFILED02=stripslashes($MOOSEFILED02);
$MOOSEFILED03=stripslashes($MOOSEFILED03);
$MOOSEFILED04=stripslashes($MOOSEFILED04);
$MOOSEFILED05=stripslashes($MOOSEFILED05);
$MOOSEFILED06=stripslashes($MOOSEFILED06);
$MOOSEFILED07=stripslashes($MOOSEFILED07);
$MOOSEFILED08=stripslashes($MOOSEFILED08);
$MOOSEFILED09=stripslashes($MOOSEFILED09);
$MOOSEFILED10=stripslashes($MOOSEFILED10);
$MOOSEFILED11=stripslashes($MOOSEFILED11);
$MOOSEFILED12=stripslashes($MOOSEFILED12);
$MOOSEFILED13=stripslashes($MOOSEFILED13);
$MOOSEFILED14=stripslashes($MOOSEFILED14);
$MOOSEFILED15=stripslashes($MOOSEFILED15);
$MOOSEFILED16=stripslashes($MOOSEFILED16);
$MOOSEFILED17=stripslashes($MOOSEFILED17);
$MOOSEFILED18=stripslashes($MOOSEFILED18);
$MOOSEFILED19=stripslashes($MOOSEFILED19);
$MOOSEFILED20=stripslashes($MOOSEFILED20);

$MOOSEFILED01=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED01);
$MOOSEFILED02=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED02);
$MOOSEFILED03=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED03);
$MOOSEFILED04=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED04);
$MOOSEFILED05=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED05);
$MOOSEFILED06=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED06);
$MOOSEFILED07=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED07);
$MOOSEFILED08=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED08);
$MOOSEFILED09=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED09);
$MOOSEFILED10=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED10);
$MOOSEFILED11=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED11);
$MOOSEFILED12=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED12);
$MOOSEFILED13=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED13);
$MOOSEFILED14=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED14);
$MOOSEFILED15=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED15);
$MOOSEFILED16=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED16);
$MOOSEFILED17=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED17);
$MOOSEFILED18=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED18);
$MOOSEFILED19=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED19);
$MOOSEFILED20=preg_replace("/[^a-z \d]/i", "", $MOOSEFILED20);
?>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################   feardearg02.css  #######################################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

a:link { color: #000000; text-decoration: none}
a:vlink { color: #000000; text-decoration: none}
a:hover { color:Red; text-decoration: underline}
a:active { color: 000000; text-decoration: none;  }
a { color: #000000; text-decoration: none;  }
body {background: #ffffff}
CITE { font-size: 14px; color: #ff0000; text-decoration: none}

table.FearFarm
{ text-align: center;
font-family: Verdana;
font-weight: normal;
font-size: 14px;
color: #ffffff;
width: auto;
background-color: #EE3D18;
border-left: 1px solid #eeeeee;
border-top: 1px solid #eeeeee;
border-bottom: 1px solid #bbbbbb;
border-right: 1px solid #bbbbbb;
border-collapse: collapse;
border-spacing: 0px;}

table.FearFarm h1 { font-family: Verdana;
font-weight: normal;
font-size: 24px;
color: #ffffff;}

.Fear
{ border-bottom: 0px solid #ccffcc;
background-color: #ffffff;
text-align: right;
font-family: Verdana;
font-weight: bold;
font-size: 11px;
white-space: nowrap;
color: #404040;}

.Farm
{ border-bottom: 0px solid #d79900;
background-color: #ffffff;
text-align: left;
font-family: Verdana;
font-weight: bold;
font-size: 11px;
color: #404040;}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################   feardearg01.css  #######################################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
a:link { color: #000000; text-decoration: none}
a:vlink { color: #000000; text-decoration: none}
a:hover { color:Red; text-decoration: underline}
a:active { color: 000000; text-decoration: none;  }
a { color: #000000; text-decoration: none;  }
body {background: #F7F6F1}
CITE { font-size: 14px; color: #ff0000; text-decoration: none}

/*Gray to highlight various Navigation links*/
.bd {
  background-color: #FDFDDE;
  color: #000000;
  font-family: Arial;
  font-size: 12px;
}

/*Table Border*/
.tbl {
border-left: 1px solid #ffffff;
border-top: 1px solid #ffffff;
border-bottom: 1px solid #dddddd;
border-right: 1px solid #dddddd;
  background-color: #F7F6F1;
}

/*Footer, Lables*/
.hr {
  background-color: #EAF3FA;
  color: #1D507D;
  font-family: Arial;
  font-size: 14px;
}

.hr a:link{
  background-color: #EAF3FA;
  color: #1D507D;
  font-family: Arial;
  font-size: 14px;
}

/*Headers*/
.th01{
height:1px;
  background-color: #F7F6F1;
  color: #ffffff;
  font-family: Arial;
  font-size: 14px;
background-repeat:no-repeat;
border: 0px solid black;
}

.th02{
height:80px;
  background-color: #F7F6F1;
  color: #000000;

  font-family: Arial;
  font-size: 14px;
background: #ffffff  url(headerdir.jpg) fixed 0px 0px;
background-repeat:no-repeat;
border: 0px solid black;
}

/*Links*/
a.hr:link {
  color: #1D507D;
  font-family: Arial;
  font-size: 12px;
}

a.hr:active {
  color: #ff0000;
  font-family: Arial;
  font-size: 12px;
}

a.hr:visited {
  color: #1D507D;
  font-family: Arial;
  font-size: 12px;
}

/*odd and bg of record details*/
.dr {
  background-color: #F7F6F1;
  color: #000000;
  font-family: Arial;
  font-size: 12px;
}

/*even*/
.sr {
  background-color: #FDFDDE;
  color: #000000;
  font-family: Arial;
  font-size: 12px;
}

.op01
a {
color: #EAF3FA;
text-decoration: none;
float: left;
background-image: url(buta.jpg);
background-color: #21759B;
text-align: center;
vertical-align: middle;
border-style: solid;
border-width: 1px;
border-color: white #C7C7C7 #C7C7C7 white;
top: 10px;
left: 10px;
width:150px;
height:20px;
overflow: visible;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
-khtml-border-radius: 50px;
border-radius: 50px; }

.op01
a:hover {
color: #ffffff;
text-decoration: none;
float: left;
background-image: url(butb.jpg);
background-color: #073447;
text-align: center;
vertical-align: middle;
border-style: solid;
border-width: 1px;
border-color: #C7C7C7 white white #C7C7C7;
top: 10px;
left: 10px;
width:150px;
height:20px;
overflow: visible }

.op02
a {
font-family: Arial;
 font-size: 12px;
color: #EAF3FA;
text-decoration: none;
float: left;
background-image: url(buta.jpg);
background-color: #21759B;
text-align: center;
vertical-align: middle;
border-style: solid;
border-width: 1px;
border-color: white #C7C7C7 #C7C7C7 white;
top: 10px;
left: 10px;
width:100px;
height:18px;
overflow: visible;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
-khtml-border-radius: 50px;
border-radius: 50px; }

.op02
a:hover {
color: #ffffff;
text-decoration: none;
float: left;
background-image: url(butb.jpg);
background-color: #073447;
text-align: center;
vertical-align: middle;
border-style: solid;
border-width: 1px;
border-color: #C7C7C7 white white #C7C7C7;
top: 10px;
left: 10px;
width:100px;
height:18px;
overflow: visible }

.op03
a {
color: #EAF3FA;
text-decoration: none;
float: left;
background-image: url(buta.jpg);
background-color: #21759B;
text-align: center;
vertical-align: middle;
border-style: solid;
border-width: 1px;
border-color: white #C7C7C7 #C7C7C7 white;
top: 10px;
left: 10px;
width:50px;
height:18px;
overflow: visible;
overflow: visible;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
-khtml-border-radius: 50px;
border-radius: 50px;
}

.op03
a:hover {
color: #ffffff;
text-decoration: none;
float: left;
background-image: url(butb.jpg);
background-color: #073447;
text-align: center;
vertical-align: middle;
border-style: solid;
border-width: 1px;
border-color: #C7C7C7 white white #C7C7C7;
top: 10px;
left: 10px;
width:50px;
height:18px;
overflow: visible }

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################          NEW FORM   MOOSEFORMNAME01.php        ####################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<link rel="stylesheet" href="feardearg02.css">
<form name="MOOSEFORMNAME" action="MOOSEFORMNAME01.php" method="post">
<table class="FearFarm" border="0" cellpadding="5" cellspacing="2" width="122">
<?php
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'Off');
ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/error_log');
$submit=$_POST['submit'];
if (isset($submit))
{
include ("postMOOSEFORMNAME.php");

$MOOSEFILED01=addslashes($MOOSEFILED01);
$MOOSEFILED02=addslashes($MOOSEFILED02);
$MOOSEFILED03=addslashes($MOOSEFILED03);
$MOOSEFILED04=addslashes($MOOSEFILED04);
$MOOSEFILED05=addslashes($MOOSEFILED05);
$MOOSEFILED06=addslashes($MOOSEFILED06);
$MOOSEFILED07=addslashes($MOOSEFILED07);
$MOOSEFILED08=addslashes($MOOSEFILED08);
$MOOSEFILED09=addslashes($MOOSEFILED09);
$MOOSEFILED10=addslashes($MOOSEFILED10);
$MOOSEFILED11=addslashes($MOOSEFILED11);
$MOOSEFILED12=addslashes($MOOSEFILED12);
$MOOSEFILED13=addslashes($MOOSEFILED13);
$MOOSEFILED14=addslashes($MOOSEFILED14);
$MOOSEFILED15=addslashes($MOOSEFILED15);
$MOOSEFILED16=addslashes($MOOSEFILED16);
$MOOSEFILED17=addslashes($MOOSEFILED17);
$MOOSEFILED18=addslashes($MOOSEFILED18);
$MOOSEFILED19=addslashes($MOOSEFILED19);
$MOOSEFILED20=addslashes($MOOSEFILED20);

if (!$_POST['MOOSEFILED01'] || $_POST['MOOSEFILED01'] == " " || strlen($_POST['MOOSEFILED01'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL01 Entry";
}
elseif (!$_POST['MOOSEFILED02'] || $_POST['MOOSEFILED02'] == " " || strlen($_POST['MOOSEFILED02'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL02 Entry";
}
elseif (!$_POST['MOOSEFILED03'] || $_POST['MOOSEFILED03'] == " " || strlen($_POST['MOOSEFILED03'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL03 Entry";
}
elseif (!$_POST['MOOSEFILED04'] || $_POST['MOOSEFILED04'] == " " || strlen($_POST['MOOSEFILED04'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL04 Entry";
}
elseif (!$_POST['MOOSEFILED05'] || $_POST['MOOSEFILED05'] == " " || strlen($_POST['MOOSEFILED05'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL05 Entry";
}
elseif (!$_POST['MOOSEFILED06'] || $_POST['MOOSEFILED06'] == " " || strlen($_POST['MOOSEFILED06'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL06 Entry";
}
elseif (!$_POST['MOOSEFILED07'] || $_POST['MOOSEFILED07'] == " " || strlen($_POST['MOOSEFILED07'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL07 Entry";
}
elseif (!$_POST['MOOSEFILED08'] || $_POST['MOOSEFILED08'] == " " || strlen($_POST['MOOSEFILED08'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL08 Entry";
}
elseif (!$_POST['MOOSEFILED09'] || $_POST['MOOSEFILED09'] == " " || strlen($_POST['MOOSEFILED09'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL09 Entry";
}
elseif (!$_POST['MOOSEFILED10'] || $_POST['MOOSEFILED10'] == " " || strlen($_POST['MOOSEFILED10'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL10 Entry";
}
elseif (!$_POST['MOOSEFILED11'] || $_POST['MOOSEFILED11'] == " " || strlen($_POST['MOOSEFILED11'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL11 Entry";
}
elseif (!$_POST['MOOSEFILED12'] || $_POST['MOOSEFILED12'] == " " || strlen($_POST['MOOSEFILED12'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL12 Entry";
}
elseif (!$_POST['MOOSEFILED13'] || $_POST['MOOSEFILED13'] == " " || strlen($_POST['MOOSEFILED13'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL13 Entry";
}
elseif (!$_POST['MOOSEFILED14'] || $_POST['MOOSEFILED14'] == " " || strlen($_POST['MOOSEFILED14'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL14 Entry";
}
elseif (!$_POST['MOOSEFILED15'] || $_POST['MOOSEFILED15'] == " " || strlen($_POST['MOOSEFILED15'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL15 Entry";
}
elseif (!$_POST['MOOSEFILED16'] || $_POST['MOOSEFILED16'] == " " || strlen($_POST['MOOSEFILED16'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL16 Entry";
}
elseif (!$_POST['MOOSEFILED17'] || $_POST['MOOSEFILED17'] == " " || strlen($_POST['MOOSEFILED17'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL17 Entry";
}
elseif (!$_POST['MOOSEFILED18'] || $_POST['MOOSEFILED18'] == " " || strlen($_POST['MOOSEFILED18'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL18 Entry";
}
elseif (!$_POST['MOOSEFILED19'] || $_POST['MOOSEFILED19'] == " " || strlen($_POST['MOOSEFILED19'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL19 Entry";
}
elseif (!$_POST['MOOSEFILED20'] || $_POST['MOOSEFILED20'] == " " || strlen($_POST['MOOSEFILED20'])>30)
{
echo "<tr><td class=\"Dearg\" valign=\"top\"><H1>Oooops</H1>Please go Back and Check Your MOOSELABEL20 Entry";
}

else
{
include ('conect/MOOSEMESSAGECONNECT');
$result= mysql_select_db($dbName,$conn);
$query = "insert into MOOSETABLENAME (todae,ip,MOOSEFILED01, MOOSEFILED02, MOOSEFILED03, MOOSEFILED04, MOOSEFILED05, MOOSEFILED06, MOOSEFILED07, MOOSEFILED08, MOOSEFILED09, MOOSEFILED10, MOOSEFILED11, MOOSEFILED12, MOOSEFILED13, MOOSEFILED14, MOOSEFILED15, MOOSEFILED16, MOOSEFILED17, MOOSEFILED18, MOOSEFILED19, MOOSEFILED20) values ('$todae','$ip','$MOOSEFILED01', '$MOOSEFILED02','$MOOSEFILED03','$MOOSEFILED04','$MOOSEFILED05','$MOOSEFILED06','$MOOSEFILED07','$MOOSEFILED08','$MOOSEFILED09','$MOOSEFILED10','$MOOSEFILED11','$MOOSEFILED12','$MOOSEFILED13','$MOOSEFILED14','$MOOSEFILED15','$MOOSEFILED16','$MOOSEFILED17','$MOOSEFILED18','$MOOSEFILED19','$MOOSEFILED20')" ;
$result1 = mysql_query($query, $conn);
echo "<center>Successfully Entered!</center>";
}
}
else
{ ?>
<tr>
<td class="Fear" valign=top>MOOSELABEL01: </td>
<td class="Farm" valign="top"><input class="texta"  type="text" name="MOOSEFILED01" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL02: </td>
<td class="Farm" valign="top"><input  class="texta" type="text" name="MOOSEFILED02" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL03: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED03" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL04: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED04" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL05: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED05" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL06: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED06" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL07: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED07" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL08: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED08" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL09: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED09" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL10: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED10" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL11: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED11" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL12: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED12" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL13: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED13" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL14: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED14" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL15: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED15" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL16: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED16" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL17: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED17" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL18: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED18" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL19: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED19" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL20: </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED20" size="24" value=""> </td>
</tr>
<tr>
<td class="Farm" valign="top" colspan=4><center><input type="image" src="submit.png" Name="submit" value="submit" alt="Please Submit"></td>
</tr>
</table>
</form>
<?php
}
?>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
########################    MOOSETABLENAMEexcel.php   ##################################
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<?php
$host = 'localhost';
$user = 'MOOSEUSERNAME';
$pass = 'MOOSEPASSWORD';
$db = 'MOOSEDATABASE';
$table = 'MOOSETABLENAME';
$file = 'MOOSETABLENAME';

$link = mysql_connect($host, $user, $pass) or die("Can not connect." . mysql_error());
mysql_select_db($db) or die("Can not connect.");

$result = mysql_query("SHOW COLUMNS FROM ".$table."");
$i = 0;
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_assoc($result)) {
$csv_output .= $row['Field'].", ";
$i++;
}
}
$csv_output .= "\n";

$values = mysql_query("SELECT * FROM ".$table."");
while ($rowr = mysql_fetch_row($values)) {
for ($j=0;$j<$i;$j++) {
$csv_output .= $rowr[$j].", ";
}
$csv_output .= "\n";
}

$filename = $file."_".date("Y-m-d_H-i",time());
header("Content-type: application/vnd.ms-excel");
header("Content-disposition: csv" . date("Y-m-d") . ".csv");
header( "Content-disposition: filename=".$filename.".csv");
print $csv_output;
exit;
?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
########################    Text Areas --- For New Form      ######################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<TEXTAREA id="styled"  NAME="MOOSEFILED01" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED02" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED03" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED04" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED05" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED06" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED07" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED08" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED09" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED10" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED11" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED12" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED13" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED14" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED15" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED16" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED17" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED18" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED19" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>
<TEXTAREA id="styled"  NAME="MOOSEFILED20" ROWS="5" COLS="24" WRAP="virtual"></TEXTAREA>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
########################   Textarea with Counter    ########################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

**********SCRIPT*************

<script language = "Javascript">
function LimitThis() {
var myObject=event.srcElement;
if (myObject.value.length==myObject.maxLength*1) return false;
}
function CountThis(visCnt) {
var myObject=event.srcElement;
if (myObject.value.length>myObject.maxLength*1) myObject.value=myObject.value.substring(0,myObject.maxLength*1);
if (visCnt) visCnt.innerText=myObject.maxLength-myObject.value.length;
}
</script>

*************************************

<textarea name="MOOSEFILED01" cols="50" rows="6" id="MOOSEFILED01"    onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter1)" onmouseover="return CountThis(myCounter1)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter1>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED02" cols="50" rows="6" id="MOOSEFILED02"  onkeypress="return LimitThis()"   onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter2)" onmouseover="return CountThis(myCounter2)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter2>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED03" cols="50" rows="6" id="MOOSEFILED03"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter3)" onmouseover="return CountThis(myCounter3)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter3>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED04" cols="50" rows="6" id="MOOSEFILED04"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter4)" onmouseover="return CountThis(myCounter4)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter4>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED05" cols="50" rows="6" id="MOOSEFILED05"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter5)" onmouseover="return CountThis(myCounter5)" wrap=physical maxLength="255"></textarea>
<br><font color=#666666>(255 characters max.) <strong><SPAN id=myCounter5>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED06" cols="50" rows="6" id="MOOSEFILED06"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter6)" onmouseover="return CountThis(myCounter6)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter6>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED07" cols="50" rows="6" id="MOOSEFILED07"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter7)" onmouseover="return CountThis(myCounter7)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter7>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED08" cols="50" rows="6" id="MOOSEFILED08"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter8)" onmouseover="return CountThis(myCounter8)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter8>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED09" cols="50" rows="6" id="MOOSEFILED09"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter9)" onmouseover="return CountThis(myCounter9)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter9>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED10" cols="50" rows="6" id="MOOSEFILED10"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter10)" onmouseover="return CountThis(myCounter10)" wrap=physical maxLength="255"></textarea>
<br><font color=#666666>(255 characters max.) <strong><SPAN id=myCounter10>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED11" cols="50" rows="6" id="MOOSEFILED11"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter11)" onmouseover="return CountThis(myCounter11)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter11>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED02" cols="50" rows="6" id="MOOSEFILED12"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter12)" onmouseover="return CountThis(myCounter12)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter12>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED13" cols="50" rows="6" id="MOOSEFILED13"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter13)" onmouseover="return CountThis(myCounter13)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter13>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED04" cols="50" rows="6" id="MOOSEFILED14"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter14)" onmouseover="return CountThis(myCounter14)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter14>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED15" cols="50" rows="6" id="MOOSEFILED15"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter15)" onmouseover="return CountThis(myCounter15)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter15>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED16" cols="50" rows="6" id="MOOSEFILED16"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter16)" onmouseover="return CountThis(myCounter16)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter16>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED17" cols="50" rows="6" id="MOOSEFILED17"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter17)" onmouseover="return CountThis(myCounter17)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter17>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED18" cols="50" rows="6" id="MOOSEFILED18"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter18)" onmouseover="return CountThis(myCounter18)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter18>255</SPAN></strong> remaining</font>

<textarea name="MOOSEFILED19" cols="50" rows="6" id="MOOSEFILED19"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter19)" onmouseover="return CountThis(myCounter19)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter19>255</SPAN></strong> remaining</font>

<textarea id="styled"  name="MOOSEFILED20" cols="50" rows="6" id="MOOSEFILED20"  onkeypress="return LimitThis()" onkeypress="return LimitThis()" onkeyup="return CountThis(myCounter20)" onmouseover="return CountThis(myCounter20)" wrap=physical maxLength="255"></textarea>
<font color=#666666>(255 characters max.) <strong><SPAN id=myCounter20>255</SPAN></strong> remaining</font>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
########################   Set Cookies     ########################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?php
$Month = 2592000 + time();
setcookie(MOOSEFILED01, $_POST['MOOSEFILED01'], $Month);
setcookie(MOOSEFILED02, $_POST['MOOSEFILED02'], $Month);
setcookie(MOOSEFILED03, $_POST['MOOSEFILED03'], $Month);
setcookie(MOOSEFILED04, $_POST['MOOSEFILED04'], $Month);
setcookie(MOOSEFILED05, $_POST['MOOSEFILED05'], $Month);
setcookie(MOOSEFILED06, $_POST['MOOSEFILED06'], $Month);
setcookie(MOOSEFILED07, $_POST['MOOSEFILED07'], $Month);
setcookie(MOOSEFILED08, $_POST['MOOSEFILED08'], $Month);
setcookie(MOOSEFILED09, $_POST['MOOSEFILED09'], $Month);
setcookie(MOOSEFILED10, $_POST['MOOSEFILED10'], $Month);
setcookie(MOOSEFILED11, $_POST['MOOSEFILED11'], $Month);
setcookie(MOOSEFILED12, $_POST['MOOSEFILED12'], $Month);
setcookie(MOOSEFILED13, $_POST['MOOSEFILED13'], $Month);
setcookie(MOOSEFILED14, $_POST['MOOSEFILED14'], $Month);
setcookie(MOOSEFILED15, $_POST['MOOSEFILED15'], $Month);
setcookie(MOOSEFILED16, $_POST['MOOSEFILED16'], $Month);
setcookie(MOOSEFILED17, $_POST['MOOSEFILED17'], $Month);
setcookie(MOOSEFILED18, $_POST['MOOSEFILED18'], $Month);
setcookie(MOOSEFILED19, $_POST['MOOSEFILED19'], $Month);
setcookie(MOOSEFILED20, $_POST['MOOSEFILED20'], $Month);
?>

@@@@@@@@@@@@@@@@@@@@@@@@
###############WORDPRESS##############
###############WORDPRESS##############
###############WORDPRESS##############
###############WORDPRESS##############
###############WORDPRESS##############
###############WORDPRESS##############
@@@@@@@@@@@@@@@@@@@@@@@@

This goes in the wp-config.php ######### REMEMBER no dashes in field names!!!!!

<?php
$todae=date ("Y/m/d");
$ip = getenv('REMOTE_ADDR');
$hostname = "localhost";
$username = "MOOSEUSERNAME";
$password = "MOOSEPASSWORD";
$dbName = "MOOSEDATABASE";
$conn = mysql_connect($hostname, $username, $password, $dbName
);
if (!$conn)
{
echo ("You are not Authorized to view this page.");
}
?>

#########################################

This goes in the page template with form

<?php
$MOOSEFILED01=$_POST['MOOSEFILED01'];
$MOOSEFILED02=$_POST['MOOSEFILED02'];
$MOOSEFILED03=$_POST['MOOSEFILED03'];
$MOOSEFILED04=$_POST['MOOSEFILED04'];
$MOOSEFILED05=$_POST['MOOSEFILED05'];
$MOOSEFILED06=$_POST['MOOSEFILED06'];
$MOOSEFILED07=$_POST['MOOSEFILED07'];
$MOOSEFILED08=$_POST['MOOSEFILED08'];
$MOOSEFILED09=$_POST['MOOSEFILED09'];
$MOOSEFILED10=$_POST['MOOSEFILED10'];
$MOOSEFILED11=$_POST['MOOSEFILED11'];
$MOOSEFILED12=$_POST['MOOSEFILED12'];
$MOOSEFILED13=$_POST['MOOSEFILED13'];
$MOOSEFILED14=$_POST['MOOSEFILED14'];
$MOOSEFILED15=$_POST['MOOSEFILED15'];
$MOOSEFILED16=$_POST['MOOSEFILED16'];
$MOOSEFILED17=$_POST['MOOSEFILED17'];
$MOOSEFILED18=$_POST['MOOSEFILED18'];
$MOOSEFILED19=$_POST['MOOSEFILED19'];
$MOOSEFILED20=$_POST['MOOSEFILED20'];

include ('wp-config.php');
$result= mysql_select_db($dbName,$conn);
$query = "insert into MOOSETABLENAME (todae,ip,MOOSEFILED01, MOOSEFILED02, MOOSEFILED03, MOOSEFILED04, MOOSEFILED05, MOOSEFILED06, MOOSEFILED07, MOOSEFILED08, MOOSEFILED09, MOOSEFILED10, MOOSEFILED11, MOOSEFILED12, MOOSEFILED13, MOOSEFILED14, MOOSEFILED15, MOOSEFILED16, MOOSEFILED17, MOOSEFILED18, MOOSEFILED19, MOOSEFILED20) values ('$todae','$ip','$MOOSEFILED01', '$MOOSEFILED02','$MOOSEFILED03','$MOOSEFILED04','$MOOSEFILED05','$MOOSEFILED06','$MOOSEFILED07','$MOOSEFILED08','$MOOSEFILED09','$MOOSEFILED10','$MOOSEFILED11','$MOOSEFILED12','$MOOSEFILED13','$MOOSEFILED14','$MOOSEFILED15','$MOOSEFILED16','$MOOSEFILED17','$MOOSEFILED18','$MOOSEFILED19','$MOOSEFILED20')";
$result1 = mysql_query($query, $conn);
echo $yourmessage;
?>


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################## Auto Emailer ########################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

$to  = "MOOSEEMAILERFORAUTO";
$subject = "MOOSENAMEOFSITE";
$from = "MOOSEEMAILERFORAUTO";
$message ="Some one submitted the following info on MOOSENAMEOFSITE.
\r\n\n $MOOSEFILED01
\n $MOOSEFILED02
\n $MOOSEFILED03
\n $MOOSEFILED04
\n $MOOSEFILED05
\n $MOOSEFILED06
\n $MOOSEFILED07
\n $MOOSEFILED08
\n $MOOSEFILED09
\n $MOOSEFILED10
\n $MOOSEFILED11
\n $MOOSEFILED12
\n $MOOSEFILED13
\n $MOOSEFILED14
\n $MOOSEFILED15
\n $MOOSEFILED16
\n $MOOSEFILED17
\n $MOOSEFILED18
\n $MOOSEFILED19
\n $MOOSEFILED20
\n\n Gary
\n ";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'MOOSENAMEOFSITE<MOOSEEMAILERFORAUTO>' . "\r\n";
$headers = "From: $MOOSEEMAILERFORAUTO";
mail($to, $subject, $message,  $headers);

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
########################    Date Picker   ########################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<script language="JavaScript" src="date_picker.js"></script>
<form name="MOOSEFORMNAME" ...............................................................................

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<input type=text value="<?php echo $MOOSEFILED01; ?>" name="MOOSEFILED01" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED01');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED02; ?>" name="MOOSEFILED02" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED02');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED03; ?>" name="MOOSEFILED03" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED03');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED04; ?>" name="MOOSEFILED04" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED04');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED05; ?>" name="MOOSEFILED05" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED05');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED06; ?>" name="MOOSEFILED06" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED06');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED07; ?>" name="MOOSEFILED07" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED07');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED08; ?>" name="MOOSEFILED08" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED08');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED09; ?>" name="MOOSEFILED09" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED09');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED10; ?>" name="MOOSEFILED10" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED10');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED11; ?>" name="MOOSEFILED11" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED11');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED12; ?>" name="MOOSEFILED12" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED12');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED13; ?>" name="MOOSEFILED13" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED13');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED14; ?>" name="MOOSEFILED14" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED14');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED15; ?>" name="MOOSEFILED15" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED15');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED16; ?>" name="MOOSEFILED16" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED17; ?>" name="MOOSEFILED17" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED17');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED18; ?>" name="MOOSEFILED18" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED18');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED19; ?>" name="MOOSEFILED19" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED19');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

<input type=text value="<?php echo $MOOSEFILED20; ?>" name="MOOSEFILED20" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED20');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
########################    Go Back Button   #####################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

echo "<br><FORM><INPUT TYPE=\"image\" src=\"goback.png\"  onClick=\"history.back()\"></FORM>";

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
##################    Form Elements  ############################
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

---------------Multi....Checkboxes or multiple Selects--------------

<td><input type="checkbox" name="MOOSEFILED01[]" value="Yes" /></td><td>MOOSELABEL01</td>
<td><input type="checkbox" name="MOOSEFILED02[]" value="Yes" /></td><td>MOOSELABEL02</td>
<td><input type="checkbox" name="MOOSEFILED03[]" value="Yes" /></td><td>MOOSELABEL03</td>
<td><input type="checkbox" name="MOOSEFILED04[]" value="Yes" /></td><td>MOOSELABEL04</td>
<td><input type="checkbox" name="MOOSEFILED05[]" value="Yes" /></td><td>MOOSELABEL05</td>
<td><input type="checkbox" name="MOOSEFILED06[]" value="Yes" /></td><td>MOOSELABEL06</td>
<td><input type="checkbox" name="MOOSEFILED07[]" value="Yes" /></td><td>MOOSELABEL07</td>
<td><input type="checkbox" name="MOOSEFILED08[]" value="Yes" /></td><td>MOOSELABEL08</td>
<td><input type="checkbox" name="MOOSEFILED09[]" value="Yes" /></td><td>MOOSELABEL09</td>
<td><input type="checkbox" name="MOOSEFILED10[]" value="Yes" /></td><td>MOOSELABEL10</td>
<td><input type="checkbox" name="MOOSEFILED11[]" value="Yes" /></td><td>MOOSELABEL11</td>
<td><input type="checkbox" name="MOOSEFILED12[]" value="Yes" /></td><td>MOOSELABEL12</td>
<td><input type="checkbox" name="MOOSEFILED13[]" value="Yes" /></td><td>MOOSELABEL13</td>
<td><input type="checkbox" name="MOOSEFILED14[]" value="Yes" /></td><td>MOOSELABEL14</td>
<td><input type="checkbox" name="MOOSEFILED15[]" value="Yes" /></td><td>MOOSELABEL15</td>
<td><input type="checkbox" name="MOOSEFILED16[]" value="Yes" /></td><td>MOOSELABEL16</td>
<td><input type="checkbox" name="MOOSEFILED17[]" value="Yes" /></td><td>MOOSELABEL17</td>
<td><input type="checkbox" name="MOOSEFILED18[]" value="Yes" /></td><td>MOOSELABEL18</td>
<td><input type="checkbox" name="MOOSEFILED19[]" value="Yes" /></td><td>MOOSELABEL19</td>
<td><input type="checkbox" name="MOOSEFILED20[]" value="Yes" /></td><td>MOOSELABEL20</td>


foreach ($_REQUEST['MOOSEFILED01'] as $MOOSEFILED01);
foreach ($_REQUEST['MOOSEFILED02'] as $MOOSEFILED02);
foreach ($_REQUEST['MOOSEFILED03'] as $MOOSEFILED03);
foreach ($_REQUEST['MOOSEFILED04'] as $MOOSEFILED04);
foreach ($_REQUEST['MOOSEFILED05'] as $MOOSEFILED05);
foreach ($_REQUEST['MOOSEFILED06'] as $MOOSEFILED06);
foreach ($_REQUEST['MOOSEFILED07'] as $MOOSEFILED07);
foreach ($_REQUEST['MOOSEFILED08'] as $MOOSEFILED08);
foreach ($_REQUEST['MOOSEFILED09'] as $MOOSEFILED09);
foreach ($_REQUEST['MOOSEFILED10'] as $MOOSEFILED10);
foreach ($_REQUEST['MOOSEFILED11'] as $MOOSEFILED11);
foreach ($_REQUEST['MOOSEFILED12'] as $MOOSEFILED12);
foreach ($_REQUEST['MOOSEFILED13'] as $MOOSEFILED13);
foreach ($_REQUEST['MOOSEFILED14'] as $MOOSEFILED14);
foreach ($_REQUEST['MOOSEFILED15'] as $MOOSEFILED15);
foreach ($_REQUEST['MOOSEFILED16'] as $MOOSEFILED16);
foreach ($_REQUEST['MOOSEFILED17'] as $MOOSEFILED17);
foreach ($_REQUEST['MOOSEFILED18'] as $MOOSEFILED18);
foreach ($_REQUEST['MOOSEFILED19'] as $MOOSEFILED19);
foreach ($_REQUEST['MOOSEFILED20'] as $MOOSEFILED20);

<select multiple name="MOOSEFILED01[ ]">
 <option value="coke">CocaCola</option>
 <option value="popcorn">Popcorn</option>
 <option value="peanuts">Peanuts</option>
</select>

foreach($MOOSEFILED01 as $value);
$MOOSEFILED01a = implode(',' , $MOOSEFILED01);
echo $MOOSEFILED01a;

-----------------Radio Buttons---------------------------------------

MOOSEFILED01:<br>

<INPUT TYPE="Radio" NAME="MOOSEFILED01" VALUE="AAAAAAAAAAAA>AAAAAAAAAAAA
<br>
<INPUT TYPE="Radio" NAME="MOOSEFILED01" VALUE="BBBBBBBBBBBB">BBBBBBBBBBBB
<br>
<INPUT TYPE="Radio" NAME="MOOSEFILED01" VALUE="CCCCCCCCCCC">CCCCCCCCCCC

-----------------Selection---------------------------------------

<SELECT NAME="MOOSEFILED01">
<OPTION value="AAAAAAAAAAAA">AAAAAAAAAAAA</OPTION>
<OPTION value="BBBBBBBBBBBB">BBBBBBBBBBBB</OPTION>
</SELECT>

OOOOOOOOOORRRRRRRRRRRR

<SELECT NAME="MOOSEFILED01">
<OPTION value="<?php echo htmlspecialchars($MOOSEFILED01) ?>"><?php echo htmlspecialchars($MOOSEFILED01) ?></OPTION>
<OPTION value="Approved">Approved</OPTION>
<OPTION value="Pending">Pending</OPTION>
</SELECT>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
##################    Crazy Pages  MOOSETABLENAMEcz.php############
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


<?php session_start();
 if (isset($_GET["order"])) $order = @$_GET["order"];
 if (isset($_GET["type"])) $ordtype = @$_GET["type"];
 if (isset($_POST["filter"])) $filter = @$_POST["filter"];
 if (isset($_POST["filter_field"])) $filterfield = @$_POST["filter_field"];
 $wholeonly = false;
 if (isset($_POST["wholeonly"])) $wholeonly = @$_POST["wholeonly"];
 if (!isset($order) && isset($_SESSION["order"])) $order = $_SESSION["order"];
 if (!isset($ordtype) && isset($_SESSION["type"])) $ordtype = $_SESSION["type"];
 if (!isset($filter) && isset($_SESSION["filter"])) $filter = $_SESSION["filter"];
 if (!isset($filterfield) && isset($_SESSION["filter_field"])) $filterfield = $_SESSION["filter_field"];
?>

<!----------------------------------------dup A------------------------------------->

<html>
<head>
<title>MOOSENAMEOFSITE</title>
<meta name="generator" http-equiv="content-type" content="text/html">
<link rel="stylesheet" type="text/css" href="feardearg01.css">
</head>
<body>
<center><table class="bdxxx" width="100%" border=0><tr><td valign=top class="th01"></table>
<table width="100%">
<tr>

<td valign=top valign="top">
<?php
 if (!login()) exit;
?><div style="float: right"><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=logout">Logout</a></span></div>
<div style="float: right"><span class="op02 "><a href="MOOSETABLENAMEexcel.php?a=logout">Excel</a></span></div>
<br>
<?php
 $conn = connect();
 $showrecs = 20;
 $pagerange = 10;

 $a = @$_GET["a"];
 $recid = @$_GET["recid"];
 $page = @$_GET["page"];
 if (!isset($page)) $page = 1;

 $sql = @$_POST["sql"];

 switch ($sql) {
   case "insert":
     sql_insert();
     break;
   case "update":
     sql_update();
     break;
   case "delete":
     sql_delete();
     break;
 }

 switch ($a) {
   case "add":
     addrec();
     break;
   case "view":
     viewrec($recid);
     break;
   case "edit":
     editrec($recid);
     break;
   case "del":
     deleterec($recid);
     break;
   default:
     select();
     break;
 }

 if (isset($order)) $_SESSION["order"] = $order;
 if (isset($ordtype)) $_SESSION["type"] = $ordtype;
 if (isset($filter)) $_SESSION["filter"] = $filter;
 if (isset($filterfield)) $_SESSION["filter_field"] = $filterfield;
 if (isset($wholeonly)) $_SESSION["wholeonly"] = $wholeonly;

 mysql_close($conn);
?>
</td></tr></table>
<table class="bd" width="100%"><tr><td valign=top class="hr">MOOSECREATOR
</td></tr></table>
</body>
</html>

<?php function select()
 {
 global $a;
 global $showrecs;
 global $page;
 global $filter;
 global $filterfield;
 global $wholeonly;
 global $order;
 global $ordtype;

 if ($a == "reset") {
   $filter = "";
   $filterfield = "";
   $wholeonly = "";
   $order = "";
   $ordtype = "";
 }

 $checkstr = "";
 if ($wholeonly) $checkstr = " checked";
 if ($ordtype == "asc") { $ordtypestr = "desc"; } else { $ordtypestr = "asc"; }

/*--------------------------------------------------------------Dup B-------------------------------------------------*/

 $res = sql_select();
 $count = sql_getrecordcount();
 if ($count % $showrecs != 0) {
   $pagecount = intval($count / $showrecs) + 1;
 }
 else {
   $pagecount = intval($count / $showrecs);
 }
 $startrec = $showrecs * ($page - 1);
 if ($startrec < $count) {mysql_data_seek($res, $startrec);}
 $reccount = min($showrecs * $page, $count);
?>
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr><td>Records shown <?php echo $startrec + 1 ?> - <?php echo $reccount ?> of <?php echo $count ?></td></tr>
</table>
<form name="MOOSEFORMNAME" action="MOOSETABLENAMEcz.php" method="post">
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><b>Find</b>&nbsp;</td>
<td><input type="text" name="filter" value="<?php echo $filter ?>"></td>
<td>


<select name="filter_field">
<option value="">All Fields</option>
<option value="<?php echo "Id" ?>"<?php if ($filterfield == "Id") { echo "selected"; } ?>><?php echo htmlspecialchars("Id") ?></option>
<option value="<?php echo "MOOSEFILED01" ?>"<?php if ($filterfield == "MOOSEFILED01") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL01") ?></option>
<option value="<?php echo "MOOSEFILED02" ?>"<?php if ($filterfield == "MOOSEFILED02") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL02") ?></option>
<option value="<?php echo "MOOSEFILED03" ?>"<?php if ($filterfield == "MOOSEFILED03") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL03") ?></option>
<option value="<?php echo "MOOSEFILED04" ?>"<?php if ($filterfield == "MOOSEFILED04") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL04") ?></option>
<option value="<?php echo "MOOSEFILED05" ?>"<?php if ($filterfield == "MOOSEFILED05") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL05") ?></option>
<option value="<?php echo "MOOSEFILED06" ?>"<?php if ($filterfield == "MOOSEFILED06") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL06") ?></option>
<option value="<?php echo "MOOSEFILED07" ?>"<?php if ($filterfield == "MOOSEFILED07") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL07") ?></option>
<option value="<?php echo "MOOSEFILED08" ?>"<?php if ($filterfield == "MOOSEFILED08") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL08") ?></option>
<option value="<?php echo "MOOSEFILED09" ?>"<?php if ($filterfield == "MOOSEFILED09") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL09") ?></option>
<option value="<?php echo "MOOSEFILED10" ?>"<?php if ($filterfield == "MOOSEFILED10") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL10") ?></option>
<option value="<?php echo "MOOSEFILED11" ?>"<?php if ($filterfield == "MOOSEFILED11") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL11") ?></option>
<option value="<?php echo "MOOSEFILED12" ?>"<?php if ($filterfield == "MOOSEFILED12") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL12") ?></option>
<option value="<?php echo "MOOSEFILED13" ?>"<?php if ($filterfield == "MOOSEFILED13") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL13") ?></option>
<option value="<?php echo "MOOSEFILED14" ?>"<?php if ($filterfield == "MOOSEFILED14") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL14") ?></option>
<option value="<?php echo "MOOSEFILED15" ?>"<?php if ($filterfield == "MOOSEFILED15") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL15") ?></option>
<option value="<?php echo "MOOSEFILED16" ?>"<?php if ($filterfield == "MOOSEFILED16") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL16") ?></option>
<option value="<?php echo "MOOSEFILED17" ?>"<?php if ($filterfield == "MOOSEFILED17") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL17") ?></option>
<option value="<?php echo "MOOSEFILED18" ?>"<?php if ($filterfield == "MOOSEFILED18") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL18") ?></option>
<option value="<?php echo "MOOSEFILED19" ?>"<?php if ($filterfield == "MOOSEFILED19") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL19") ?></option>
<option value="<?php echo "MOOSEFILED20" ?>"<?php if ($filterfield == "MOOSEFILED20") { echo "selected"; } ?>><?php echo htmlspecialchars("MOOSELABEL20") ?></option>
</select>

</td>

<td><input type="checkbox" name="wholeonly"<?php echo $checkstr ?>>Whole words only</td>
</td>
<td>&nbsp;</td>
<td><input type="submit" name="action" value="Search Now"></td>
<td><a href="MOOSETABLENAMEcz.php?a=reset">List All Records</a></td>
</tr>
</table>
</form>

<?php showpagenav($page, $pagecount); ?>
<br>

<!--------------------------------------------------------------------------view all table--------------------------------------------------->


<table class="tbl" border="0" cellspacing="1" cellpadding="5"width="100%">
<tr>
<!-----------------------------------------------------------------Dup C -------------------------------------------------->
<td valign=top class="hr">&nbsp;</td>
<td valign=top class="hr">&nbsp;</td>
<td valign=top class="hr">&nbsp;</td>
<td valign=top class="hr"><a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "Id" ?>&type=<?php echo $ordtypestr ?>"><?php echo htmlspecialchars("Id") ?></a></td>

<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED01" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL01") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED02" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL02") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED03" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL03") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED04" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL04") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED05" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL05") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED06" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL06") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED07" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL07") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED08" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL08") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED09" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL09") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED10" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL10") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED11" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL11") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED12" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL12") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED13" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL13") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED14" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL14") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED15" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL15") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED16" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL16") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED17" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL17") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED18" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL18") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED19" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL19") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEcz.php?order=<?php echo "MOOSEFILED20" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("MOOSELABEL20") ?></a></td>


</tr>
<?php
 for ($i = $startrec; $i < $reccount; $i++)
 {
   $row = mysql_fetch_assoc($res);
   $style = "dr";
   if ($i % 2 != 0) {
     $style = "sr";
   }
?>
<tr>
<td valign=top class="<?php echo $style ?>"><span class="op03 "><a href="MOOSETABLENAMEcz.php?a=view&recid=<?php echo $i ?>">View</a></td>
<td valign=top class="<?php echo $style ?>"><span class="op03 "><a href="MOOSETABLENAMEcz.php?a=edit&recid=<?php echo $i ?>">Edit</a></td>
<td valign=top class="<?php echo $style ?>"><span class="op03 "><a href="MOOSETABLENAMEcz.php?a=del&recid=<?php echo $i ?>">Delete</a></td>

<!---------------------------------Dup D--------------------->

<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Id"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED01"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED02"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED03"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED04"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED05"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED06"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED07"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED08"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED09"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED10"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED11"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED12"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED13"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED14"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED15"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED16"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED17"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED18"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED19"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["MOOSEFILED20"]) ?></td>
</tr>
<?php
 }
 mysql_free_result($res);
?>
</table>
<br>
<?php showpagenav($page, $pagecount); ?>
<?php } ?>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Pick one below^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                       <?php function login()
                       {
                       global $_POST;
                       global $_SESSION;
                       global $_GET;
                       if (isset($_GET["a"]) && ($_GET["a"] == 'logout')) $_SESSION["logged_in"] = false;
                       if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
                       if (!$_SESSION["logged_in"]) {
                       $login = "";
                       $password = "";
                       if (isset($_POST["login"])) $login = @$_POST["login"];
                       if (isset($_POST["password"])) $password = @$_POST["password"];
                       if (($login != "") && ($password != "")) {
                       $conn = mysql_connect("localhost", "MOOSEUSERNAME", "MOOSEPASSWORD");
                       mysql_select_db("MOOSEDATABASE");
                       $sql = "select FD_Password from MOOSETABLENAMEUsers where FD_Username='$login'";
                       $res = mysql_query($sql, $conn) or die(mysql_error());
                       $row = mysql_fetch_assoc($res) or $row = array(0 => "");;
                       if (isset($row)) reset($row);
                       if (isset($password) && ($password == trim(current($row)))) {
                       $_SESSION["logged_in"] = true;
                       }
                       else {
                       ?>

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^or^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

                       <?php function login()
                       {
                       global $_POST;
                       global $_SESSION;

                       global $_GET;
                       if (isset($_GET["a"]) && ($_GET["a"] == 'logout')) $_SESSION["logged_in"] = false;
                       if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
                       if (!$_SESSION["logged_in"]) {
                       $login = "";
                       $password = "";
                       if (isset($_POST["login"])) $login = @$_POST["login"];
                       if (isset($_POST["password"])) $password = @$_POST["password"];

                       if (($login != "") && ($password != "")) {
                       if (($login == "MOOSECRAZZYUSERNAME") && ($password == "MOOSECRAZYPASSWORD")) {
                       $_SESSION["logged_in"] = true;
                       }
                       else {
                       ?>

 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Pick one of the Above^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

<p><b><font color="-1">Sorry, the login/password combination you've entered is invalid</font></b></p>
<?php } } }if (isset($_SESSION["logged_in"]) && (!$_SESSION["logged_in"])) { ?>
<form name=MOOSEFORMNAME action="MOOSETABLENAMEcz.php" method="post">
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td>Username</td>
<td><input type="text" name="login" value="<?php echo $login ?>"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" value="<?php echo $password ?>"></td>
</tr>
<tr>
<td><input type="submit" name="action" value="Login"></td>
</tr>
</table>
</form>
<?php
 }
 if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
 return $_SESSION["logged_in"];
} ?>

<?php function showrow($row, $recid)
 {
?>

<!--------------------------------------------------------------------------View Record Detail------------------>

<table class="tbl" border="0" cellspacing="1" cellpadding="5">
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Id")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["Id"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL01")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED01"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL02")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED02"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL03")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED03"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL04")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED04"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL05")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED05"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL06")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED06"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL07")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED07"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL08")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED08"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL09")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED09"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL10")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED10"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL11")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED11"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL12")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED12"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL13")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED13"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL14")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED14"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL15")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED15"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL16")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED16"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL17")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED17"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL18")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED18"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL19")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED19"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL20")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["MOOSEFILED20"]) ?></td>
</tr>
</table>
<?php } ?>

<?php function showroweditor($row, $iseditmode)
 {
 global $conn;
?>

<!--------------------------------------------Add and Edit Page------------------------------------------------------------->

<table class="tbl" border="0" cellspacing="1" cellpadding="5"width="50%">
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Id")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="Id"  size="55" value="<?php echo str_replace('"', '&quot;', trim($row["Id"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL01")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED01" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED01"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL02")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED02" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED02"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL03")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED03" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED03"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL04")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED04" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED04"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL05")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED05" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED05"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL06")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED06" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED06"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL07")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED07" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED07"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL08")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED08" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED08"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL09")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED09" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED09"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL10")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED10" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED10"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL11")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED11" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED11"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL12")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED12" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED12"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL13")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED13" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED13"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL14")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED14" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED14"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL15")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED15" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED15"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL16")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED16" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED16"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL17")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED17" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED17"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL18")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED18" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED18"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL19")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED19" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED19"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL20")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED20" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED20"])) ?>"></td>
</tr>
</table>
<?php } ?>

<?php function showpagenav($page, $pagecount)
{
?>
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=add">Add Record</a>&nbsp;</td>
<?php if ($page > 1) { ?>
<td><a href="MOOSETABLENAMEcz.php?page=<?php echo $page - 1 ?>">&lt;&lt;&nbsp;Prev</a>&nbsp;</td>
<?php } ?>
<?php
 global $pagerange;

 if ($pagecount > 1) {

 if ($pagecount % $pagerange != 0) {
   $rangecount = intval($pagecount / $pagerange) + 1;
 }
 else {
   $rangecount = intval($pagecount / $pagerange);
 }
 for ($i = 1; $i < $rangecount + 1; $i++) {
   $startpage = (($i - 1) * $pagerange) + 1;
   $count = min($i * $pagerange, $pagecount);

   if ((($page >= $startpage) && ($page <= ($i * $pagerange)))) {
     for ($j = $startpage; $j < $count + 1; $j++) {
       if ($j == $page) {
?>
<td><b><?php echo $j ?></b></td>
<?php } else { ?>
<td><a href="MOOSETABLENAMEcz.php?page=<?php echo $j ?>"><?php echo $j ?></a></td>
<?php } } } else { ?>
<td><a href="MOOSETABLENAMEcz.php?page=<?php echo $startpage ?>"><?php echo $startpage ."..." .$count ?></a></td>
<?php } } } ?>
<?php if ($page < $pagecount) { ?>
<td>&nbsp;<a href="MOOSETABLENAMEcz.php?page=<?php echo $page + 1 ?>">Next&nbsp;&gt;&gt;</a>&nbsp;</td>
<?php } ?>
</tr>
</table>
<?php } ?>

<?php function showrecnav($a, $recid, $count)
{
?>
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php">Index Page</a></td>
<?php if ($recid > 0) { ?>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=<?php echo $a ?>&recid=<?php echo $recid - 1 ?>">Prior Record</a></td>
<?php } if ($recid < $count - 1) { ?>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=<?php echo $a ?>&recid=<?php echo $recid + 1 ?>">Next Record</a></td>
<?php } ?>
</tr>
</table>

<?php } ?>

<?php function addrec()
{
?>

<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php">Index Page</a></td>
</tr>
</table>

<form name="MOOSEFORMNAME" enctype="multipart/form-data" action="MOOSETABLENAMEcz.php" method="post">
<p><input type="hidden" name="sql" value="insert"></p>
<?php
$row = array(
 "Id" => "",
 "MOOSEFILED01" => "",
"MOOSEFILED02" => "",
"MOOSEFILED03" => "",
"MOOSEFILED04" => "",
"MOOSEFILED05" => "",
"MOOSEFILED06" => "",
"MOOSEFILED07" => "",
"MOOSEFILED08" => "",
"MOOSEFILED09" => "",
"MOOSEFILED10" => "",
"MOOSEFILED11" => "",
"MOOSEFILED12" => "",
"MOOSEFILED13" => "",
"MOOSEFILED14" => "",
"MOOSEFILED15" => "",
"MOOSEFILED16" => "",
"MOOSEFILED17" => "",
"MOOSEFILED18" => "",
"MOOSEFILED19" => "",
"MOOSEFILED20" => ""
);
showroweditor($row, false);
?>
<p><input type="submit" name="action" value="Post"></p>
</form>
<?php } ?>

<?php function viewrec($recid)
{
 $res = sql_select();
 $count = sql_getrecordcount();
 mysql_data_seek($res, $recid);
 $row = mysql_fetch_assoc($res);
 showrecnav("view", $recid, $count);
?>
<br>
<?php showrow($row, $recid) ?>
<br>

<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=add">Add Record</a></td>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=edit&recid=<?php echo $recid ?>">Edit Record</a></td>
<td><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=del&recid=<?php echo $recid ?>">Delete Record</a></td>
</tr>
</table>
<?php
 mysql_free_result($res);
} ?>

<?php function editrec($recid)
{
 $res = sql_select();
 $count = sql_getrecordcount();
 mysql_data_seek($res, $recid);
 $row = mysql_fetch_assoc($res);
 showrecnav("edit", $recid, $count);
?>
<br>
<form name="MOOSEFORMNAME" enctype="multipart/form-data" action="MOOSETABLENAMEcz.php" method="post">
<input type="hidden" name="sql" value="update">
<input type="hidden" name="xId" value="<?php echo $row["Id"] ?>">
<?php showroweditor($row, true); ?>
<p><input type="submit" name="action" value="Post"></p>
</form>
<?php
 mysql_free_result($res);
} ?>

<?php function deleterec($recid)
{
 $res = sql_select();
 $count = sql_getrecordcount();
 mysql_data_seek($res, $recid);
 $row = mysql_fetch_assoc($res);
 showrecnav("del", $recid, $count);
?>
<br>
<form name="MOOSEFORMNAME" action="MOOSETABLENAMEcz.php" method="post">
<input type="hidden" name="sql" value="delete">
<input type="hidden" name="xId" value="<?php echo $row["Id"] ?>">
<?php showrow($row, $recid) ?>
<p><input type="submit" name="action" value="Confirm"></p>
</form>
<?php
 mysql_free_result($res);
} ?>

<?php function connect()
{
 $conn = mysql_connect("localhost", "MOOSEUSERNAME", "MOOSEPASSWORD");
 mysql_select_db("MOOSEDATABASE");
 return $conn;
}

function sqlvalue($val, $quote)
{
 if ($quote)
   $tmp = sqlstr($val);
 else
   $tmp = $val;
 if ($tmp == "")
   $tmp = "NULL";
 elseif ($quote)
   $tmp = "'".$tmp."'";
 return $tmp;
}

function sqlstr($val)
{
 return str_replace("'", "''", $val);
}

function sql_select()
{
 global $conn;
 global $order;
 global $ordtype;
 global $filter;
 global $filterfield;
 global $wholeonly;

 $filterstr = sqlstr($filter);
 if (!$wholeonly && isset($wholeonly) && $filterstr!='') $filterstr = "%" .$filterstr ."%";
 $sql = "SELECT `Id`,
`MOOSEFILED01`,
`MOOSEFILED02`,
`MOOSEFILED03`,
`MOOSEFILED04`,
`MOOSEFILED05`,
`MOOSEFILED06`,
`MOOSEFILED07`,
`MOOSEFILED08`,
`MOOSEFILED09`,
`MOOSEFILED10`,
`MOOSEFILED11`,
`MOOSEFILED12`,
`MOOSEFILED13`,
`MOOSEFILED14`,
`MOOSEFILED15`,
`MOOSEFILED16`,
`MOOSEFILED17`,
`MOOSEFILED18`,
`MOOSEFILED19`,
`MOOSEFILED20`
FROM `MOOSETABLENAME`";
 if (isset($filterstr) && $filterstr!='' && isset($filterfield) && $filterfield!='') {
   $sql .= " where " .sqlstr($filterfield) ." like '" .$filterstr ."'";
 } elseif (isset($filterstr) && $filterstr!='') {
   $sql .= " where
(`Id` like '" .$filterstr ."') or
(`MOOSEFILED01` like '" .$filterstr ."') or
(`MOOSEFILED02` like '" .$filterstr ."') or
(`MOOSEFILED03` like '" .$filterstr ."') or
(`MOOSEFILED04` like '" .$filterstr ."') or
(`MOOSEFILED05` like '" .$filterstr ."') or
(`MOOSEFILED06` like '" .$filterstr ."') or
(`MOOSEFILED07` like '" .$filterstr ."') or
(`MOOSEFILED08` like '" .$filterstr ."') or
(`MOOSEFILED09` like '" .$filterstr ."') or
(`MOOSEFILED10` like '" .$filterstr ."') or
(`MOOSEFILED11` like '" .$filterstr ."') or
(`MOOSEFILED12` like '" .$filterstr ."') or
(`MOOSEFILED13` like '" .$filterstr ."') or
(`MOOSEFILED14` like '" .$filterstr ."') or
(`MOOSEFILED15` like '" .$filterstr ."') or
(`MOOSEFILED16` like '" .$filterstr ."') or
(`MOOSEFILED17` like '" .$filterstr ."') or
(`MOOSEFILED18` like '" .$filterstr ."') or
(`MOOSEFILED19` like '" .$filterstr ."') or
(`MOOSEFILED20` like '" .$filterstr ."')
";
 }
 if (isset($order) && $order!='') $sql .= " order by `" .sqlstr($order) ."`";
 if (isset($ordtype) && $ordtype!='') $sql .= " " .sqlstr($ordtype);
 $res = mysql_query($sql, $conn) or die(mysql_error());
 return $res;
}

function sql_getrecordcount()
{
 global $conn;
 global $order;
 global $ordtype;
 global $filter;
 global $filterfield;
 global $wholeonly;

 $filterstr = sqlstr($filter);
 if (!$wholeonly && isset($wholeonly) && $filterstr!='') $filterstr = "%" .$filterstr ."%";
 $sql = "SELECT COUNT(*) FROM `MOOSETABLENAME`";
 if (isset($filterstr) && $filterstr!='' && isset($filterfield) && $filterfield!='') {
   $sql .= " where " .sqlstr($filterfield) ." like '" .$filterstr ."'";
 } elseif (isset($filterstr) && $filterstr!='') {
   $sql .= " where
(`Id` like '" .$filterstr ."') or
(`MOOSEFILED01` like '" .$filterstr ."') or
(`MOOSEFILED02` like '" .$filterstr ."') or
(`MOOSEFILED03` like '" .$filterstr ."') or
(`MOOSEFILED04` like '" .$filterstr ."') or
(`MOOSEFILED05` like '" .$filterstr ."') or
(`MOOSEFILED06` like '" .$filterstr ."') or
(`MOOSEFILED07` like '" .$filterstr ."') or
(`MOOSEFILED08` like '" .$filterstr ."') or
(`MOOSEFILED09` like '" .$filterstr ."') or
(`MOOSEFILED10` like '" .$filterstr ."') or
(`MOOSEFILED11` like '" .$filterstr ."') or
(`MOOSEFILED12` like '" .$filterstr ."') or
(`MOOSEFILED13` like '" .$filterstr ."') or
(`MOOSEFILED14` like '" .$filterstr ."') or
(`MOOSEFILED15` like '" .$filterstr ."') or
(`MOOSEFILED16` like '" .$filterstr ."') or
(`MOOSEFILED17` like '" .$filterstr ."') or
(`MOOSEFILED18` like '" .$filterstr ."') or
(`MOOSEFILED19` like '" .$filterstr ."') or
(`MOOSEFILED20` like '" .$filterstr ."')
";
 }
 $res = mysql_query($sql, $conn) or die(mysql_error());
 $row = mysql_fetch_assoc($res);
 reset($row);
 return current($row);
}

function sql_insert()
{
 global $conn;
 global $_POST;

 $sql = "insert into `MOOSETABLENAME`
(`Id`,
`MOOSEFILED01`,
`MOOSEFILED02`,
`MOOSEFILED03`,
`MOOSEFILED04`,
`MOOSEFILED05`,
`MOOSEFILED06`,
`MOOSEFILED07`,
`MOOSEFILED08`,
`MOOSEFILED09`,
`MOOSEFILED10`,
`MOOSEFILED11`,
`MOOSEFILED12`,
`MOOSEFILED13`,
`MOOSEFILED14`,
`MOOSEFILED15`,
`MOOSEFILED16`,
`MOOSEFILED17`,
`MOOSEFILED18`,
`MOOSEFILED19`,
`MOOSEFILED20`
) values (
" .sqlvalue(@$_POST["Id"], false).",
" .sqlvalue(@$_POST["MOOSEFILED01"], true).",
" .sqlvalue(@$_POST["MOOSEFILED02"], true).",
" .sqlvalue(@$_POST["MOOSEFILED03"], true).",
" .sqlvalue(@$_POST["MOOSEFILED04"], true).",
" .sqlvalue(@$_POST["MOOSEFILED05"], true).",
" .sqlvalue(@$_POST["MOOSEFILED06"], true).",
" .sqlvalue(@$_POST["MOOSEFILED07"], true).",
" .sqlvalue(@$_POST["MOOSEFILED08"], true).",
" .sqlvalue(@$_POST["MOOSEFILED09"], true).",
" .sqlvalue(@$_POST["MOOSEFILED10"], true).",
" .sqlvalue(@$_POST["MOOSEFILED11"], true).",
" .sqlvalue(@$_POST["MOOSEFILED12"], true).",
" .sqlvalue(@$_POST["MOOSEFILED13"], true).",
" .sqlvalue(@$_POST["MOOSEFILED14"], true).",
" .sqlvalue(@$_POST["MOOSEFILED15"], true).",
" .sqlvalue(@$_POST["MOOSEFILED16"], true).",
" .sqlvalue(@$_POST["MOOSEFILED17"], true).",
" .sqlvalue(@$_POST["MOOSEFILED18"], true).",
" .sqlvalue(@$_POST["MOOSEFILED19"], true).",
" .sqlvalue(@$_POST["MOOSEFILED20"], true)."
)";
 mysql_query($sql, $conn) or die(mysql_error());
}

function sql_update()
{
 global $conn;
 global $_POST;

 $sql = "update `MOOSETABLENAME` set
`Id`=" .sqlvalue(@$_POST["Id"], false).",
`MOOSEFILED01`=" .sqlvalue(@$_POST["MOOSEFILED01"], true).",
`MOOSEFILED02`=" .sqlvalue(@$_POST["MOOSEFILED02"], true).",  
`MOOSEFILED03`=" .sqlvalue(@$_POST["MOOSEFILED03"], true).",  
`MOOSEFILED04`=" .sqlvalue(@$_POST["MOOSEFILED04"], true).",  
`MOOSEFILED05`=" .sqlvalue(@$_POST["MOOSEFILED05"], true).",  
`MOOSEFILED06`=" .sqlvalue(@$_POST["MOOSEFILED06"], true).",  
`MOOSEFILED07`=" .sqlvalue(@$_POST["MOOSEFILED07"], true).",  
`MOOSEFILED08`=" .sqlvalue(@$_POST["MOOSEFILED08"], true).",  
`MOOSEFILED09`=" .sqlvalue(@$_POST["MOOSEFILED09"], true).",  
`MOOSEFILED10`=" .sqlvalue(@$_POST["MOOSEFILED10"], true).",  
`MOOSEFILED11`=" .sqlvalue(@$_POST["MOOSEFILED11"], true).",  
`MOOSEFILED12`=" .sqlvalue(@$_POST["MOOSEFILED12"], true).",  
`MOOSEFILED13`=" .sqlvalue(@$_POST["MOOSEFILED13"], true).",  
`MOOSEFILED14`=" .sqlvalue(@$_POST["MOOSEFILED14"], true).",  
`MOOSEFILED15`=" .sqlvalue(@$_POST["MOOSEFILED15"], true).",  
`MOOSEFILED16`=" .sqlvalue(@$_POST["MOOSEFILED16"], true).",  
`MOOSEFILED17`=" .sqlvalue(@$_POST["MOOSEFILED17"], true).",  
`MOOSEFILED18`=" .sqlvalue(@$_POST["MOOSEFILED18"], true).",  
`MOOSEFILED19`=" .sqlvalue(@$_POST["MOOSEFILED19"], true).",  
`MOOSEFILED20`=" .sqlvalue(@$_POST["MOOSEFILED20"], true)."
where " .primarykeycondition();
 mysql_query($sql, $conn) or die(mysql_error());
}

function sql_delete()
{
 global $conn;

 $sql = "delete from `MOOSETABLENAME` where " .primarykeycondition();
 mysql_query($sql, $conn) or die(mysql_error());
}
function primarykeycondition()
{
 global $_POST;
 $pk = "";
 $pk .= "(`Id`";
 if (@$_POST["xId"] == "") {
   $pk .= " IS NULL";
 }else{
 $pk .= " = " .sqlvalue(@$_POST["xId"], false);
 };
 $pk .= ")";
 return $pk;
}
?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/////////////////////////////// Editing Text Areas for Crazy Pages/////////////////////////////////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL01")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED01 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED01 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL02")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED02 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED02 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL03")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED03 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED03 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL04")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED04 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED04 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL05")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED05 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED05 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL06")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED06 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED06 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL07")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED07 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED07 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL08")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED08 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED08 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL09")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED09 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED09 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL10")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED10 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED10 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL11")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED11 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED11 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL12")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED12 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED12 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL13")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED13 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED13 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL14")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED14 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED14 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL15")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED15 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED15 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL16")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED16 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED16 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL17")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED17 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED17 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL18")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED18 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED18 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL19")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED19 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED19 "])) ?></TEXTAREA></td>

<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL20")."&nbsp;" ?></td>
<td valign=top class="dr">
<TEXTAREA id="styled"  NAME="MOOSEFILED20 " ROWS="5" COLS="24" WRAP="virtual">
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED20 "])) ?></TEXTAREA></td>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/////////////////////////////// Echos for Crazy Pages////////////////////////////////////////////////////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?php echo htmlspecialchars($row["MOOSEFILED01"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED02"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED03"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED04"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED05"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED06"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED07"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED08"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED09"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED10"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED11"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED12"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED13"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED14"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED15"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED16"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED17"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED18"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED19"]) ?>
<?php echo htmlspecialchars($row["MOOSEFILED20"]) ?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/////////////////////////////// Value for Crazy Pages////////////////////////////////////////////////////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED01"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED02"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED03"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED04"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED05"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED06"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED07"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED08"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED09"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED10"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED11"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED12"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED13"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED14"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED15"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED16"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED17"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED18"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED19"])) ?>
<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED20"])) ?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/////////////////////////////// Crazy Select Example ////////////////////////////////////////////////////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<select name="MOOSEFILED01"]">
<option><?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED01"]"])) ?></option>
<option>Approved</option>
<option>Pending</option>
</select>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/////////////////////////////// Crazy Pick Date ////////////////////////////////////////////////////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<script language="JavaScript" src="date_picker.js"></script>
<form name="MOOSEFORMNAME" ...............................................................................

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<input type=text value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED01"])) ?>" name="MOOSEFILED01" size=10><a href="javascript:show_calendar('MOOSEFORMNAME.MOOSEFILED01');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Pick Date</a>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/////////////////////////////// Crazy Duplicate Feature ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Goes in getMOOSEFORMNAME.php:

$dup=$_GET['dup'];

------------------------------------------------------------------------------------Dup A-----------------------------------------------------------------------

<?
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'Off');
ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/error_log');
$dup=$_GET['dup'];
if (isset($dup)){
include ("getMOOSEFORMNAME.php");
include ('conect/MOOSEMESSAGECONNECT');
$result= mysql_select_db($dbName,$conn);
$query = "insert into MOOSETABLENAME (MOOSEFILED01, MOOSEFILED02, MOOSEFILED03, MOOSEFILED04, MOOSEFILED05, MOOSEFILED06, MOOSEFILED07, MOOSEFILED08, MOOSEFILED09, MOOSEFILED10, MOOSEFILED11, MOOSEFILED12, MOOSEFILED13, MOOSEFILED14, MOOSEFILED15, MOOSEFILED16, MOOSEFILED17, MOOSEFILED18, MOOSEFILED19, MOOSEFILED20) values ('$MOOSEFILED01 - $dup', '$MOOSEFILED02','$MOOSEFILED03','$MOOSEFILED04','$MOOSEFILED05','$MOOSEFILED06','$MOOSEFILED07','$MOOSEFILED08','$MOOSEFILED09','$MOOSEFILED10','$MOOSEFILED11','$MOOSEFILED12','$MOOSEFILED13','$MOOSEFILED14','$MOOSEFILED15','$MOOSEFILED16','$MOOSEFILED17','$MOOSEFILED18','$MOOSEFILED19','$MOOSEFILED20')" ;
$result1 = mysql_query($query, $conn);
}
?>

------------------------------------------------------------------------------------Dup B-----------------------------------------------------------------------

if(isset($dup)){
$ordtype == "desc";
$ordtypestr = "desc"; }

------------------------------------------------------------------------------------Dup C-----------------------------------------------------------------------

<td valign=top class="hr">&nbsp;</td>

------------------------------------------------------------------------------------Dup D-----------------------------------------------------------------------

<td valign=top class="<?php echo $style ?>">
<?php
include ("postMOOSEFORMNAME.php");
?><span class="op03">
<a href="MOOSEFORMNAMEcz.php?
MOOSEFILED01=<?php echo htmlspecialchars($row["MOOSEFILED01"]) ?>&dup=D&
MOOSEFILED02=<?php echo htmlspecialchars($row["MOOSEFILED02"]) ?>&
MOOSEFILED03=<?php echo htmlspecialchars($row["MOOSEFILED03"]) ?>&
MOOSEFILED04=<?php echo htmlspecialchars($row["MOOSEFILED04"]) ?>&
MOOSEFILED05=<?php echo htmlspecialchars($row["MOOSEFILED05"]) ?>&
MOOSEFILED06=<?php echo htmlspecialchars($row["MOOSEFILED06"]) ?>&
MOOSEFILED07=<?php echo htmlspecialchars($row["MOOSEFILED07"]) ?>&
MOOSEFILED08=<?php echo htmlspecialchars($row["MOOSEFILED08"]) ?>&
MOOSEFILED09=<?php echo htmlspecialchars($row["MOOSEFILED09"]) ?>&
MOOSEFILED10=<?php echo htmlspecialchars($row["MOOSEFILED10"]) ?>&
MOOSEFILED11=<?php echo htmlspecialchars($row["MOOSEFILED11"]) ?>&
MOOSEFILED12=<?php echo htmlspecialchars($row["MOOSEFILED12"]) ?>&
MOOSEFILED13=<?php echo htmlspecialchars($row["MOOSEFILED13"]) ?>&
MOOSEFILED14=<?php echo htmlspecialchars($row["MOOSEFILED14"]) ?>&
MOOSEFILED15=<?php echo htmlspecialchars($row["MOOSEFILED15"]) ?>&
MOOSEFILED16=<?php echo htmlspecialchars($row["MOOSEFILED16"]) ?>&
MOOSEFILED17=<?php echo htmlspecialchars($row["MOOSEFILED17"]) ?>&
MOOSEFILED18=<?php echo htmlspecialchars($row["MOOSEFILED18"]) ?>&
MOOSEFILED19=<?php echo htmlspecialchars($row["MOOSEFILED19"]) ?>&
MOOSEFILED20=<?php echo htmlspecialchars($row["MOOSEFILED20"]) ?>
">Dupe</a>
</td>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
///////////////////////////////   Authorize Net Script  MOOSEFORMNAMEAut.php    /////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?PHP
$post_url = "https://test.authorize.net/gateway/transact.dll";

$post_values = array(
"MOOSEFILED01" => "$MOOSEFILED01",
"MOOSEFILED02" => "$MOOSEFILED02",
"MOOSEFILED03" => "$MOOSEFILED03",
"MOOSEFILED04" => "$MOOSEFILED04",
"MOOSEFILED05" => "$MOOSEFILED05",
"MOOSEFILED06" => "$MOOSEFILED06",
"MOOSEFILED07" => "$MOOSEFILED07",
"MOOSEFILED08" => "$MOOSEFILED08",
"MOOSEFILED09" => "$MOOSEFILED09",
"MOOSEFILED10" => "$MOOSEFILED10",
"MOOSEFILED11" => "$MOOSEFILED11",
"MOOSEFILED12" => "$MOOSEFILED12",
"MOOSEFILED13" => "$MOOSEFILED13",
"MOOSEFILED14" => "$MOOSEFILED14",
"MOOSEFILED15" => "$MOOSEFILED15",
"MOOSEFILED16" => "$MOOSEFILED16",
"MOOSEFILED17" => "$MOOSEFILED17",
"MOOSEFILED18" => "$MOOSEFILED18",
"MOOSEFILED19" => "$MOOSEFILED19",
"MOOSEFILED20" => "$MOOSEFILED20",

"x_card_num" => "4007000000027",
"x_exp_date" => "0115",
"x_login" => "4QU8ub75MVH",
"x_tran_key" => "5p65cnT8kwP4L46S",
"x_version" => "3.1",
"x_delim_data" => "TRUE",
"x_delim_char" => "|",
"x_relay_response" => "true",
"x_type" => "AUTH_CAPTURE",
"x_method" => "CC",

);

$post_string = "";
foreach( $post_values as $key => $value )
{ $post_string .= "$key=" . urlencode( $value ) . "&"; }
$post_string = rtrim( $post_string, "& " );
$request = curl_init($post_url); // initiate curl object
curl_setopt($request, CURLOPT_HEADER, 0);
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($request, CURLOPT_POSTFIELDS, $post_string);
curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE);
$post_response = curl_exec($request);
curl_close ($request);

$response_array = explode($post_values["x_delim_char"],$post_response);
$response_code=$response_array [0];
$that=$response_array [3];

echo $that;

if ($response_code==1){
include ('conect/MOOSEMESSAGECONNECT');
$result= mysql_select_db($dbName,$conn);
$query = "insert into MOOSETABLENAME (todae,ip,MOOSEFILED01, MOOSEFILED02, MOOSEFILED03, MOOSEFILED04, MOOSEFILED05, MOOSEFILED06, MOOSEFILED07, MOOSEFILED08, MOOSEFILED09, MOOSEFILED10, MOOSEFILED11, MOOSEFILED12, MOOSEFILED13, MOOSEFILED14, MOOSEFILED15, MOOSEFILED16, MOOSEFILED17, MOOSEFILED18, MOOSEFILED19, MOOSEFILED20) values ('$todae','$ip','$MOOSEFILED01', '$MOOSEFILED02','$MOOSEFILED03','$MOOSEFILED04','$MOOSEFILED05','$MOOSEFILED06','$MOOSEFILED07','$MOOSEFILED08','$MOOSEFILED09','$MOOSEFILED10','$MOOSEFILED11','$MOOSEFILED12','$MOOSEFILED13','$MOOSEFILED14','$MOOSEFILED15','$MOOSEFILED16','$MOOSEFILED17','$MOOSEFILED18','$MOOSEFILED19','$MOOSEFILED20')" ;
$result1 = mysql_query($query, $conn);
echo "<br><br>Yes!</center>";

}
else
{
echo "Something went Wrong";
}
?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
///////////////////////////////   Multi Column Results  /////////////////
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<table border=1 cellspacing="3" cellpadding="3">
<?php
include ('conect/MOOSEMESSAGECONNECT');
$result=mysql_select_db($dbName,$conn);
$query = "select * FROM MOOSETABLENAME";
$result = mysql_query($query) or die("There was a problem with the SQL query: " . mysql_error());
if($result && mysql_num_rows($result) > 0)
{
   $i = 0;
   $max_columns = 2;
   while($row = mysql_fetch_array($result))        
  {
      extract($row);

      if($i == 0)
         echo "<tr>";
      if($MOOSEFILED01 != "" && $MOOSEFILED01 != null)
         echo "<td>$MOOSEFILED01<br>$MOOSEFILED02</td>";
      if(++$i == $max_columns)
      {
          echo "</tr>";
          $i=0;
      }
  }
}

if($i < $max_columns)
{
   for($j=$i; $j<$max_columns;$j++)
       echo "<td>&nbsp;</td>";
}
?>
</tr>
</table>


%%%%%%%%%%%%%%%%%%%%%%%%%%
############  MOOSEFORMNAMEXML.php  ###########
%%%%%%%%%%%%%%%%%%%%%%%%%

<?php
error_reporting(0);
$submit=$_POST['submit'];
$MOOSEFILED01=$_POST['MOOSEFILED01'];
$MOOSEFILED02=$_POST['MOOSEFILED02'];
$MOOSEFILED03=$_POST['MOOSEFILED03'];
$MOOSEFILED04=$_POST['MOOSEFILED04'];
$MOOSEFILED05=$_POST['MOOSEFILED05'];
$MOOSEFILED06=$_POST['MOOSEFILED06'];
$MOOSEFILED07=$_POST['MOOSEFILED07'];
$MOOSEFILED08=$_POST['MOOSEFILED08'];
$MOOSEFILED09=$_POST['MOOSEFILED09'];
$MOOSEFILED10=$_POST['MOOSEFILED10'];
$MOOSEFILED11=$_POST['MOOSEFILED11'];
$MOOSEFILED12=$_POST['MOOSEFILED12'];
$MOOSEFILED13=$_POST['MOOSEFILED13'];
$MOOSEFILED14=$_POST['MOOSEFILED14'];
$MOOSEFILED15=$_POST['MOOSEFILED15'];
$MOOSEFILED16=$_POST['MOOSEFILED16'];
$MOOSEFILED17=$_POST['MOOSEFILED17'];
$MOOSEFILED18=$_POST['MOOSEFILED18'];
$MOOSEFILED19=$_POST['MOOSEFILED19'];
$MOOSEFILED20=$_POST['MOOSEFILED20'];

if(isset($submit)){
$file = "MOOSEFORMNAME.xml";
$ROOT = simplexml_load_file($file) or die ("Yikes!!");
$ROOT->CHANNEL->ITEM->MOOSEFILED01 = "$MOOSEFILED01";
$ROOT->CHANNEL->ITEM->MOOSEFILED02 = "$MOOSEFILED02";
$ROOT->CHANNEL->ITEM->MOOSEFILED03 = "$MOOSEFILED03";
$ROOT->CHANNEL->ITEM->MOOSEFILED04 = "$MOOSEFILED04";
$ROOT->CHANNEL->ITEM->MOOSEFILED05 = "$MOOSEFILED05";
$ROOT->CHANNEL->ITEM->MOOSEFILED06 = "$MOOSEFILED06";
$ROOT->CHANNEL->ITEM->MOOSEFILED07 = "$MOOSEFILED07";
$ROOT->CHANNEL->ITEM->MOOSEFILED08 = "$MOOSEFILED08";
$ROOT->CHANNEL->ITEM->MOOSEFILED09 = "$MOOSEFILED09";
$ROOT->CHANNEL->ITEM->MOOSEFILED10 = "$MOOSEFILED10";
$ROOT->CHANNEL->ITEM->MOOSEFILED11 = "$MOOSEFILED11";
$ROOT->CHANNEL->ITEM->MOOSEFILED12 = "$MOOSEFILED12";
$ROOT->CHANNEL->ITEM->MOOSEFILED13 = "$MOOSEFILED13";
$ROOT->CHANNEL->ITEM->MOOSEFILED14 = "$MOOSEFILED14";
$ROOT->CHANNEL->ITEM->MOOSEFILED15 = "$MOOSEFILED15";
$ROOT->CHANNEL->ITEM->MOOSEFILED16 = "$MOOSEFILED16";
$ROOT->CHANNEL->ITEM->MOOSEFILED17 = "$MOOSEFILED17";
$ROOT->CHANNEL->ITEM->MOOSEFILED18 = "$MOOSEFILED18";
$ROOT->CHANNEL->ITEM->MOOSEFILED19 = "$MOOSEFILED19";
$ROOT->CHANNEL->ITEM->MOOSEFILED20 = "$MOOSEFILED20";

file_put_contents($file, $ROOT->asXML());
}
?>


<?php
$file = "MOOSEFORMNAME.xml";
$ROOT = simplexml_load_file($file) or die ("Yikes!");
$MOOSEFILED01=$ROOT->CHANNEL->ITEM->MOOSEFILED01;
$MOOSEFILED02=$ROOT->CHANNEL->ITEM->MOOSEFILED02;
$MOOSEFILED03=$ROOT->CHANNEL->ITEM->MOOSEFILED03;
$MOOSEFILED04=$ROOT->CHANNEL->ITEM->MOOSEFILED04;
$MOOSEFILED05=$ROOT->CHANNEL->ITEM->MOOSEFILED05;
$MOOSEFILED06=$ROOT->CHANNEL->ITEM->MOOSEFILED06;
$MOOSEFILED07=$ROOT->CHANNEL->ITEM->MOOSEFILED07;
$MOOSEFILED08=$ROOT->CHANNEL->ITEM->MOOSEFILED08;
$MOOSEFILED09=$ROOT->CHANNEL->ITEM->MOOSEFILED09;
$MOOSEFILED10=$ROOT->CHANNEL->ITEM->MOOSEFILED10;
$MOOSEFILED11=$ROOT->CHANNEL->ITEM->MOOSEFILED11;
$MOOSEFILED12=$ROOT->CHANNEL->ITEM->MOOSEFILED12;
$MOOSEFILED13=$ROOT->CHANNEL->ITEM->MOOSEFILED13;
$MOOSEFILED14=$ROOT->CHANNEL->ITEM->MOOSEFILED14;
$MOOSEFILED15=$ROOT->CHANNEL->ITEM->MOOSEFILED15;
$MOOSEFILED16=$ROOT->CHANNEL->ITEM->MOOSEFILED16;
$MOOSEFILED17=$ROOT->CHANNEL->ITEM->MOOSEFILED17;
$MOOSEFILED18=$ROOT->CHANNEL->ITEM->MOOSEFILED18;
$MOOSEFILED19=$ROOT->CHANNEL->ITEM->MOOSEFILED19;
$MOOSEFILED20=$ROOT->CHANNEL->ITEM->MOOSEFILED20;

?>

<form name="FearDearg" action="MOOSEFORMNAMEXML.php" method="post">
<table border="0" cellpadding="0" cellspacing="2" width="122">
<tr>
<td><p align=right>MOOSELABEL01</td>
<td><input type="text" name="MOOSEFILED01" size="24" value="<?php echo $MOOSEFILED01; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL02</td>
<td><input type="text" name="MOOSEFILED02" size="24" value="<?php echo $MOOSEFILED02; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL03</td>
<td><input type="text" name="MOOSEFILED03" size="24" value="<?php echo $MOOSEFILED03; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL04</td>
<td><input type="text" name="MOOSEFILED04" size="24" value="<?php echo $MOOSEFILED04; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL05</td>
<td><input type="text" name="MOOSEFILED05" size="24" value="<?php echo $MOOSEFILED05; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL06</td>
<td><input type="text" name="MOOSEFILED06" size="24" value="<?php echo $MOOSEFILED06; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL07</td>
<td><input type="text" name="MOOSEFILED07" size="24" value="<?php echo $MOOSEFILED07; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL08</td>
<td><input type="text" name="MOOSEFILED08" size="24" value="<?php echo $MOOSEFILED08; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL09</td>
<td><input type="text" name="MOOSEFILED09" size="24" value="<?php echo $MOOSEFILED09; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL10</td>
<td><input type="text" name="MOOSEFILED10" size="24" value="<?php echo $MOOSEFILED10; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL11</td>
<td><input type="text" name="MOOSEFILED11" size="24" value="<?php echo $MOOSEFILED11; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL12</td>
<td><input type="text" name="MOOSEFILED12" size="24" value="<?php echo $MOOSEFILED12; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL13</td>
<td><input type="text" name="MOOSEFILED13" size="24" value="<?php echo $MOOSEFILED13; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL14</td>
<td><input type="text" name="MOOSEFILED14" size="24" value="<?php echo $MOOSEFILED14; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL15</td>
<td><input type="text" name="MOOSEFILED15" size="24" value="<?php echo $MOOSEFILED15; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL16</td>
<td><input type="text" name="MOOSEFILED16" size="24" value="<?php echo $MOOSEFILED16; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL17</td>
<td><input type="text" name="MOOSEFILED17" size="24" value="<?php echo $MOOSEFILED17; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL18</td>
<td><input type="text" name="MOOSEFILED18" size="24" value="<?php echo $MOOSEFILED18; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL19</td>
<td><input type="text" name="MOOSEFILED19" size="24" value="<?php echo $MOOSEFILED19; ?>"> </td>
<tr>
<td><p align=right>MOOSELABEL20</td>
<td><input type="text" name="MOOSEFILED20" size="24" value="<?php echo $MOOSEFILED20; ?>"> </td>

<tr>
<td></td>
<td><input type="submit" name="submit"></td>
</tr>
</table>
</form>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
##################### MOOSEFORMNAME.xml ############
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<?xml version="1.0"?>
<ROOT>
<CHANNEL>
<ITEM>
<MOOSEFILED01>FDearg</MOOSEFILED01>
<MOOSEFILED02>FDearg</MOOSEFILED02>
<MOOSEFILED03>FDearg</MOOSEFILED03>
<MOOSEFILED04>FDearg</MOOSEFILED04>
<MOOSEFILED05>FDearg</MOOSEFILED05>
<MOOSEFILED06>FDearg</MOOSEFILED06>
<MOOSEFILED07>FDearg</MOOSEFILED07>
<MOOSEFILED08>FDearg</MOOSEFILED08>
<MOOSEFILED09>FDearg</MOOSEFILED09>
<MOOSEFILED10>FDearg</MOOSEFILED10>
<MOOSEFILED11>FDearg</MOOSEFILED11>
<MOOSEFILED12>FDearg</MOOSEFILED12>
<MOOSEFILED13>FDearg</MOOSEFILED13>
<MOOSEFILED14>FDearg</MOOSEFILED14>
<MOOSEFILED15>FDearg</MOOSEFILED15>
<MOOSEFILED16>FDearg</MOOSEFILED16>
<MOOSEFILED17>FDearg</MOOSEFILED17>
<MOOSEFILED18>FDearg</MOOSEFILED18>
<MOOSEFILED19>FDearg</MOOSEFILED19>
<MOOSEFILED20>FDearg</MOOSEFILED20>

</ITEM>
</CHANNEL>
</ROOT>

@@@@@@@@@@@@@@@@@@@@@@@@
##################  XML LOOP  #############
@@@@@@@@@@@@@@@@@@@@@@@@

<?php
foreach ($ROOT->CHANNEL->ITEM as $MOOSEFORMNAME) {
 echo "<b>" .$MOOSEFORMNAME->MOOSEFILED01."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED01."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED02."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED03."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED04."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED05."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED06."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED07."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED08."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED09."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED10."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED11."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED12."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED13."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED14."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED15."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED16."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED17."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED18."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED19."<BR>";
echo "<b>" .$MOOSEFORMNAME->MOOSEFILED20."<BR>";
}
?>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
############## Getting and placing Variables ########
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<?php
$file = "MOOSEFORMNAME.xml";
$ROOT = simplexml_load_file($file) or die ("Yikes!");
$MOOSEFILED01=$ROOT->CHANNEL->ITEM->MOOSEFILED01;
$MOOSEFILED02=$ROOT->CHANNEL->ITEM->MOOSEFILED02;
$MOOSEFILED03=$ROOT->CHANNEL->ITEM->MOOSEFILED03;
$MOOSEFILED04=$ROOT->CHANNEL->ITEM->MOOSEFILED04;
$MOOSEFILED05=$ROOT->CHANNEL->ITEM->MOOSEFILED05;
$MOOSEFILED06=$ROOT->CHANNEL->ITEM->MOOSEFILED06;
$MOOSEFILED07=$ROOT->CHANNEL->ITEM->MOOSEFILED07;
$MOOSEFILED08=$ROOT->CHANNEL->ITEM->MOOSEFILED08;
$MOOSEFILED09=$ROOT->CHANNEL->ITEM->MOOSEFILED09;
$MOOSEFILED10=$ROOT->CHANNEL->ITEM->MOOSEFILED10;
$MOOSEFILED11=$ROOT->CHANNEL->ITEM->MOOSEFILED11;
$MOOSEFILED12=$ROOT->CHANNEL->ITEM->MOOSEFILED12;
$MOOSEFILED13=$ROOT->CHANNEL->ITEM->MOOSEFILED13;
$MOOSEFILED14=$ROOT->CHANNEL->ITEM->MOOSEFILED14;
$MOOSEFILED15=$ROOT->CHANNEL->ITEM->MOOSEFILED15;
$MOOSEFILED16=$ROOT->CHANNEL->ITEM->MOOSEFILED16;
$MOOSEFILED17=$ROOT->CHANNEL->ITEM->MOOSEFILED17;
$MOOSEFILED18=$ROOT->CHANNEL->ITEM->MOOSEFILED18;
$MOOSEFILED19=$ROOT->CHANNEL->ITEM->MOOSEFILED19;
$MOOSEFILED20=$ROOT->CHANNEL->ITEM->MOOSEFILED20;
?>

<?php echo $MOOSEFILED01; ?>
<?php echo $MOOSEFILED02; ?>
<?php echo $MOOSEFILED03; ?>
<?php echo $MOOSEFILED04; ?>
<?php echo $MOOSEFILED05; ?>
<?php echo $MOOSEFILED06; ?>
<?php echo $MOOSEFILED07; ?>
<?php echo $MOOSEFILED08; ?>
<?php echo $MOOSEFILED09; ?>
<?php echo $MOOSEFILED10; ?>
<?php echo $MOOSEFILED11; ?>
<?php echo $MOOSEFILED12; ?>
<?php echo $MOOSEFILED13; ?>
<?php echo $MOOSEFILED14; ?>
<?php echo $MOOSEFILED15; ?>
<?php echo $MOOSEFILED16; ?>
<?php echo $MOOSEFILED17; ?>
<?php echo $MOOSEFILED18; ?>
<?php echo $MOOSEFILED19; ?>
<?php echo $MOOSEFILED20; ?>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
############## Index.php  Put this in root of wp-admin ########
create a directory in the theme root called database for contents of you
created above
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

<?php
require_once('admin.php');
require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
wp_dashboard_setup();
wp_enqueue_script( 'dashboard' );
wp_enqueue_script( 'plugin-install' );
wp_enqueue_script( 'media-upload' );
wp_admin_css( 'dashboard' );
wp_admin_css( 'plugin-install' );
add_thickbox();
$title = __('Dashboard');
$parent_file = 'index.php';
require_once('admin-header.php');
$today = current_time('mysql', 1);
?>
<?php include( TEMPLATEPATH . '/database/MOOSETABLENAMEcz.php' ); ?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@  User Crazy    MOOSETABLENAMEUserscz.php     
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?php session_start();
 if (isset($_GET["order"])) $order = @$_GET["order"];
 if (isset($_GET["type"])) $ordtype = @$_GET["type"];
 if (isset($_POST["filter"])) $filter = @$_POST["filter"];
 if (isset($_POST["filter_field"])) $filterfield = @$_POST["filter_field"];
 $wholeonly = false;
 if (isset($_POST["wholeonly"])) $wholeonly = @$_POST["wholeonly"];
 if (!isset($order) && isset($_SESSION["order"])) $order = $_SESSION["order"];
 if (!isset($ordtype) && isset($_SESSION["type"])) $ordtype = $_SESSION["type"];
 if (!isset($filter) && isset($_SESSION["filter"])) $filter = $_SESSION["filter"];
 if (!isset($filterfield) && isset($_SESSION["filter_field"])) $filterfield = $_SESSION["filter_field"];
?>

<!----------------------------------------dup A------------------------------------->

<html>
<head>
<title>MOOSENAMEOFSITE</title>
<meta name="generator" http-equiv="content-type" content="text/html">
<link rel="stylesheet" type="text/css" href="feardearg01.css">
</head>
<body>
<center><table class="bdxxx" width="100%" border=0><tr><td valign=top class="th01"></table>
<table width="100%">
<tr>

<td valign=top valign="top">
<?php
 if (!login()) exit;
?><div style="float: right"><span class="op02 "><a href="MOOSETABLENAMEcz.php?a=logout">Logout</a></div>
<div style="float: right"><span class="op02 "><a href="excel.php?a=logout">Excel</a></div>
<br>
<?php
 $conn = connect();
 $showrecs = 20;
 $pagerange = 10;

 $a = @$_GET["a"];
 $recid = @$_GET["recid"];
 $page = @$_GET["page"];
 if (!isset($page)) $page = 1;

 $sql = @$_POST["sql"];

 switch ($sql) {
   case "insert":
     sql_insert();
     break;
   case "update":
     sql_update();
     break;
   case "delete":
     sql_delete();
     break;
 }

 switch ($a) {
   case "add":
     addrec();
     break;
   case "view":
     viewrec($recid);
     break;
   case "edit":
     editrec($recid);
     break;
   case "del":
     deleterec($recid);
     break;
   default:
     select();
     break;
 }

 if (isset($order)) $_SESSION["order"] = $order;
 if (isset($ordtype)) $_SESSION["type"] = $ordtype;
 if (isset($filter)) $_SESSION["filter"] = $filter;
 if (isset($filterfield)) $_SESSION["filter_field"] = $filterfield;
 if (isset($wholeonly)) $_SESSION["wholeonly"] = $wholeonly;

 mysql_close($conn);
?>
</td></tr></table>
<table class="bd" width="100%"><tr><td valign=top class="hr">MOOSECREATOR
</td></tr></table>
</body>
</html>

<?php function select()
 {
 global $a;
 global $showrecs;
 global $page;
 global $filter;
 global $filterfield;
 global $wholeonly;
 global $order;
 global $ordtype;

 if ($a == "reset") {
   $filter = "";
   $filterfield = "";
   $wholeonly = "";
   $order = "";
   $ordtype = "";
 }

 $checkstr = "";
 if ($wholeonly) $checkstr = " checked";
 if ($ordtype == "asc") { $ordtypestr = "desc"; } else { $ordtypestr = "asc"; }

/*--------------------------------------------------------------Dup B-------------------------------------------------*/

 $res = sql_select();
 $count = sql_getrecordcount();
 if ($count % $showrecs != 0) {
   $pagecount = intval($count / $showrecs) + 1;
 }
 else {
   $pagecount = intval($count / $showrecs);
 }
 $startrec = $showrecs * ($page - 1);
 if ($startrec < $count) {mysql_data_seek($res, $startrec);}
 $reccount = min($showrecs * $page, $count);
?>
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr><td>Records shown <?php echo $startrec + 1 ?> - <?php echo $reccount ?> of <?php echo $count ?></td></tr>
</table>
<form name="MOOSEFORMNAME" action="MOOSETABLENAMEUserscz.php" method="post">
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><b>Find</b>&nbsp;</td>
<td><input type="text" name="filter" value="<?php echo $filter ?>"></td>
<td>


<select name="filter_field">
<option value="">All Fields</option>
<option value="<?php echo "Id" ?>"<?php if ($filterfield == "Id") { echo "selected"; } ?>><?php echo htmlspecialchars("Id") ?></option>
<option value="<?php echo "FD_First" ?>"<?php if ($filterfield == "FD_First") { echo "selected"; } ?>><?php echo htmlspecialchars("First Name") ?></option>
<option value="<?php echo "FD_Last" ?>"<?php if ($filterfield == "FD_Last") { echo "selected"; } ?>><?php echo htmlspecialchars("Last Name") ?></option>
<option value="<?php echo "FD_Username" ?>"<?php if ($filterfield == "FD_Username") { echo "selected"; } ?>><?php echo htmlspecialchars("Username") ?></option>
<option value="<?php echo "FD_Password" ?>"<?php if ($filterfield == "FD_Password") { echo "selected"; } ?>><?php echo htmlspecialchars("Password") ?></option>
<option value="<?php echo "FD_Email" ?>"<?php if ($filterfield == "FD_Email") { echo "selected"; } ?>><?php echo htmlspecialchars("Email") ?></option>
</select>

</td>

<td><input type="checkbox" name="wholeonly"<?php echo $checkstr ?>>Whole words only</td>
</td>
<td>&nbsp;</td>
<td><input type="submit" name="action" value="Search Now"></td>
<td><a href="MOOSETABLENAMEUserscz.php?a=reset">List All Records</a></td>
</tr>
</table>
</form>

<?php showpagenav($page, $pagecount); ?>
<br>

<!--------------------------------------------------------------------------view all table--------------------------------------------------->


<table class="tbl" border="0" cellspacing="1" cellpadding="5"width="100%">
<tr>
<!-----------------------------------------------------------------Dup C -------------------------------------------------->
<td valign=top class="hr">&nbsp;</td>
<td valign=top class="hr">&nbsp;</td>
<td valign=top class="hr">&nbsp;</td>
<td valign=top class="hr"><a class="hr" href="MOOSETABLENAMEUserscz.php?order=<?php echo "Id" ?>&type=<?php echo $ordtypestr ?>"><?php echo htmlspecialchars("Id") ?></a></td>

<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEUserscz.php?order=<?php echo "FD_First" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("First Name") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEUserscz.php?order=<?php echo "FD_Last" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("Last Name") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEUserscz.php?order=<?php echo "FD_Username" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("Username") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEUserscz.php?order=<?php echo "FD_Password" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("Password") ?></a></td>
<td valign=top class="hr">
<a class="hr" href="MOOSETABLENAMEUserscz.php?order=<?php echo "FD_Email" ?>&type=<?php echo $ordtypestr ?>">
<?php echo htmlspecialchars("Email") ?></a></td>


</tr>
<?php
 for ($i = $startrec; $i < $reccount; $i++)
 {
   $row = mysql_fetch_assoc($res);
   $style = "dr";
   if ($i % 2 != 0) {
     $style = "sr";
   }
?>
<tr>
<td valign=top class="<?php echo $style ?>"><span class="op03 "><a href="MOOSETABLENAMEUserscz.php?a=view&recid=<?php echo $i ?>">View</a></td>
<td valign=top class="<?php echo $style ?>"><span class="op03 "><a href="MOOSETABLENAMEUserscz.php?a=edit&recid=<?php echo $i ?>">Edit</a></td>
<td valign=top class="<?php echo $style ?>"><span class="op03 "><a href="MOOSETABLENAMEUserscz.php?a=del&recid=<?php echo $i ?>">Delete</a></td>

<!---------------------------------Dup D--------------------->

<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["Id"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["FD_First"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["FD_Last"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["FD_Username"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["FD_Password"]) ?></td>
<td valign=top class="<?php echo $style ?>"><?php echo htmlspecialchars($row["FD_Email"]) ?></td>
</tr>
<?php
 }
 mysql_free_result($res);
?>
</table>
<br>
<?php showpagenav($page, $pagecount); ?>
<?php } ?>

                       <?php function login()
                       {
                       global $_POST;
                       global $_SESSION;

                       global $_GET;
                       if (isset($_GET["a"]) && ($_GET["a"] == 'logout')) $_SESSION["logged_in"] = false;
                       if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
                       if (!$_SESSION["logged_in"]) {
                       $login = "";
                       $password = "";
                       if (isset($_POST["login"])) $login = @$_POST["login"];
                       if (isset($_POST["password"])) $password = @$_POST["password"];

                       if (($login != "") && ($password != "")) {
                       if (($login == "MOOSECRAZZYUSERNAME") && ($password == "MOOSECRAZYPASSWORD")) {
                       $_SESSION["logged_in"] = true;
                       }
                       else {
                       ?>

<p><b><font color="-1">Sorry, the login/password combination you've entered is invalid</font></b></p>
<?php } } }if (isset($_SESSION["logged_in"]) && (!$_SESSION["logged_in"])) { ?>
<form name=MOOSEFORMNAME action="MOOSETABLENAMEUserscz.php" method="post">
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td>Username</td>
<td><input type="text" name="login" value="<?php echo $login ?>"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" value="<?php echo $password ?>"></td>
</tr>
<tr>
<td><input type="submit" name="action" value="Login"></td>
</tr>
</table>
</form>
<?php
 }
 if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
 return $_SESSION["logged_in"];
} ?>

<?php function showrow($row, $recid)
 {
?>

<!--------------------------------------------------------------------------View Record Detail------------------>

<table class="tbl" border="0" cellspacing="1" cellpadding="5">
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Id")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["Id"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("First Name")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["FD_First"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Last Name")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["FD_Last"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Username")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["FD_Username"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Password")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["FD_Password"]) ?></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Email")."&nbsp;" ?></td>
<td valign=top class="dr"><?php echo htmlspecialchars($row["FD_Email"]) ?></td>
</tr>
</table>
<?php } ?>

<?php function showroweditor($row, $iseditmode)
 {
 global $conn;
?>

<!--------------------------------------------Add and Edit Page------------------------------------------------------------->

<table class="tbl" border="0" cellspacing="1" cellpadding="5"width="50%">
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Id")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="Id"  size="55" value="<?php echo str_replace('"', '&quot;', trim($row["Id"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("First Name")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="FD_First" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["FD_First"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Last Name")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="FD_Last" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["FD_Last"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Username")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="FD_Username" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["FD_Username"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Password")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="FD_Password" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["FD_Password"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("Email")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="FD_Email" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["FD_Email"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL06")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED06" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED06"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL07")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED07" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED07"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL08")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED08" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED08"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL09")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED09" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED09"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL10")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED10" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED10"])) ?>"></td>
</tr>
<tr>
<td valign=top class="hr"><nobr><?php echo htmlspecialchars("MOOSELABEL11")."&nbsp;" ?></td>
<td valign=top class="dr"><input type="text" name="MOOSEFILED11" maxlength="250" size="55" value="<?php echo str_replace('"', '&quot;', trim($row["MOOSEFILED11"])) ?>"></td>
</tr>
</table>
<?php } ?>

<?php function showpagenav($page, $pagecount)
{
?>
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php?a=add">Add Record</a>&nbsp;</td>
<?php if ($page > 1) { ?>
<td><a href="MOOSETABLENAMEUserscz.php?page=<?php echo $page - 1 ?>">&lt;&lt;&nbsp;Prev</a>&nbsp;</td>
<?php } ?>
<?php
 global $pagerange;

 if ($pagecount > 1) {

 if ($pagecount % $pagerange != 0) {
   $rangecount = intval($pagecount / $pagerange) + 1;
 }
 else {
   $rangecount = intval($pagecount / $pagerange);
 }
 for ($i = 1; $i < $rangecount + 1; $i++) {
   $startpage = (($i - 1) * $pagerange) + 1;
   $count = min($i * $pagerange, $pagecount);

   if ((($page >= $startpage) && ($page <= ($i * $pagerange)))) {
     for ($j = $startpage; $j < $count + 1; $j++) {
       if ($j == $page) {
?>
<td><b><?php echo $j ?></b></td>
<?php } else { ?>
<td><a href="MOOSETABLENAMEUserscz.php?page=<?php echo $j ?>"><?php echo $j ?></a></td>
<?php } } } else { ?>
<td><a href="MOOSETABLENAMEUserscz.php?page=<?php echo $startpage ?>"><?php echo $startpage ."..." .$count ?></a></td>
<?php } } } ?>
<?php if ($page < $pagecount) { ?>
<td>&nbsp;<a href="MOOSETABLENAMEUserscz.php?page=<?php echo $page + 1 ?>">Next&nbsp;&gt;&gt;</a>&nbsp;</td>
<?php } ?>
</tr>
</table>
<?php } ?>

<?php function showrecnav($a, $recid, $count)
{
?>
<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php">Index Page</a></td>
<?php if ($recid > 0) { ?>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php?a=<?php echo $a ?>&recid=<?php echo $recid - 1 ?>">Prior Record</a></td>
<?php } if ($recid < $count - 1) { ?>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php?a=<?php echo $a ?>&recid=<?php echo $recid + 1 ?>">Next Record</a></td>
<?php } ?>
</tr>
</table>

<?php } ?>

<?php function addrec()
{
?>

<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php">Index Page</a></td>
</tr>
</table>

<form name="MOOSEFORMNAME" enctype="multipart/form-data" action="MOOSETABLENAMEUserscz.php" method="post">
<p><input type="hidden" name="sql" value="insert"></p>
<?php
$row = array(
 "Id" => "",
 "FD_First" => "",
"FD_Last" => "",
"FD_Username" => "",
"FD_Password" => "",
"FD_Email" => ""
);
showroweditor($row, false);
?>
<p><input type="submit" name="action" value="Post"></p>
</form>
<?php } ?>

<?php function viewrec($recid)
{
 $res = sql_select();
 $count = sql_getrecordcount();
 mysql_data_seek($res, $recid);
 $row = mysql_fetch_assoc($res);
 showrecnav("view", $recid, $count);
?>
<br>
<?php showrow($row, $recid) ?>
<br>

<table class="bd" border="0" cellspacing="1" cellpadding="4">
<tr>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php?a=add">Add Record</a></td>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php?a=edit&recid=<?php echo $recid ?>">Edit Record</a></td>
<td><span class="op02 "><a href="MOOSETABLENAMEUserscz.php?a=del&recid=<?php echo $recid ?>">Delete Record</a></td>
</tr>
</table>
<?php
 mysql_free_result($res);
} ?>

<?php function editrec($recid)
{
 $res = sql_select();
 $count = sql_getrecordcount();
 mysql_data_seek($res, $recid);
 $row = mysql_fetch_assoc($res);
 showrecnav("edit", $recid, $count);
?>
<br>
<form name="MOOSEFORMNAME" enctype="multipart/form-data" action="MOOSETABLENAMEUserscz.php" method="post">
<input type="hidden" name="sql" value="update">
<input type="hidden" name="xId" value="<?php echo $row["Id"] ?>">
<?php showroweditor($row, true); ?>
<p><input type="submit" name="action" value="Post"></p>
</form>
<?php
 mysql_free_result($res);
} ?>

<?php function deleterec($recid)
{
 $res = sql_select();
 $count = sql_getrecordcount();
 mysql_data_seek($res, $recid);
 $row = mysql_fetch_assoc($res);
 showrecnav("del", $recid, $count);
?>
<br>
<form name="MOOSEFORMNAME" action="MOOSETABLENAMEUserscz.php" method="post">
<input type="hidden" name="sql" value="delete">
<input type="hidden" name="xId" value="<?php echo $row["Id"] ?>">
<?php showrow($row, $recid) ?>
<p><input type="submit" name="action" value="Confirm"></p>
</form>
<?php
 mysql_free_result($res);
} ?>

<?php function connect()
{
 $conn = mysql_connect("localhost", "MOOSEUSERNAMEUsers", "MOOSEPASSWORD");
 mysql_select_db("MOOSEDATABASE");
 return $conn;
}

function sqlvalue($val, $quote)
{
 if ($quote)
   $tmp = sqlstr($val);
 else
   $tmp = $val;
 if ($tmp == "")
   $tmp = "NULL";
 elseif ($quote)
   $tmp = "'".$tmp."'";
 return $tmp;
}

function sqlstr($val)
{
 return str_replace("'", "'", $val);
}

function sql_select()
{
 global $conn;
 global $order;
 global $ordtype;
 global $filter;
 global $filterfield;
 global $wholeonly;

 $filterstr = sqlstr($filter);
 if (!$wholeonly && isset($wholeonly) && $filterstr!='') $filterstr = "%" .$filterstr ."%";
 $sql = "SELECT `Id`,
`FD_First`,
`FD_Last`,
`FD_Username`,
`FD_Password`,
`FD_Email`
FROM `MOOSETABLENAMEUsers`";
 if (isset($filterstr) && $filterstr!='' && isset($filterfield) && $filterfield!='') {
   $sql .= " where " .sqlstr($filterfield) ." like '" .$filterstr ."'";
 } elseif (isset($filterstr) && $filterstr!='') {
   $sql .= " where
(`Id` like '" .$filterstr ."') or
(`FD_First` like '" .$filterstr ."') or
(`FD_Last` like '" .$filterstr ."') or
(`FD_Username` like '" .$filterstr ."') or
(`FD_Password` like '" .$filterstr ."') or
(`FD_Email` like '" .$filterstr ."')
";
 }
 if (isset($order) && $order!='') $sql .= " order by `" .sqlstr($order) ."`";
 if (isset($ordtype) && $ordtype!='') $sql .= " " .sqlstr($ordtype);
 $res = mysql_query($sql, $conn) or die(mysql_error());
 return $res;
}

function sql_getrecordcount()
{
 global $conn;
 global $order;
 global $ordtype;
 global $filter;
 global $filterfield;
 global $wholeonly;

 $filterstr = sqlstr($filter);
 if (!$wholeonly && isset($wholeonly) && $filterstr!='') $filterstr = "%" .$filterstr ."%";
 $sql = "SELECT COUNT(*) FROM `MOOSETABLENAME`";
 if (isset($filterstr) && $filterstr!='' && isset($filterfield) && $filterfield!='') {
   $sql .= " where " .sqlstr($filterfield) ." like '" .$filterstr ."'";
 } elseif (isset($filterstr) && $filterstr!='') {
   $sql .= " where
(`Id` like '" .$filterstr ."') or
(`FD_First` like '" .$filterstr ."') or
(`FD_Last` like '" .$filterstr ."') or
(`FD_Username` like '" .$filterstr ."') or
(`FD_Password` like '" .$filterstr ."') or
(`FD_Email` like '" .$filterstr ."')
";
 }
 $res = mysql_query($sql, $conn) or die(mysql_error());
 $row = mysql_fetch_assoc($res);
 reset($row);
 return current($row);
}

function sql_insert()
{
 global $conn;
 global $_POST;

 $sql = "insert into `MOOSETABLENAMEUsers`
(`Id`,
`FD_First`,
`FD_Last`,
`FD_Username`,
`FD_Password`,
`FD_Email`
) values (
" .sqlvalue(@$_POST["Id"], false).",
" .sqlvalue(@$_POST["FD_First"], true).",
" .sqlvalue(@$_POST["FD_Last"], true).",
" .sqlvalue(@$_POST["FD_Username"], true).",
" .sqlvalue(@$_POST["FD_Password"], true).",
" .sqlvalue(@$_POST["FD_Email"], true)."
)";
 mysql_query($sql, $conn) or die(mysql_error());
}

function sql_update()
{
 global $conn;
 global $_POST;

 $sql = "update `MOOSETABLENAMEUsers` set
`Id`=" .sqlvalue(@$_POST["Id"], false).",
`FD_First`=" .sqlvalue(@$_POST["FD_First"], true).",
`FD_Last`=" .sqlvalue(@$_POST["FD_Last"], true).",  
`FD_Username`=" .sqlvalue(@$_POST["FD_Username"], true).",  
`FD_Password`=" .sqlvalue(@$_POST["FD_Password"], true).",  
`FD_Email`=" .sqlvalue(@$_POST["FD_Email"], true)."
where " .primarykeycondition();
 mysql_query($sql, $conn) or die(mysql_error());
}

function sql_delete()
{
 global $conn;

 $sql = "delete from `MOOSETABLENAMEUsers` where " .primarykeycondition();
 mysql_query($sql, $conn) or die(mysql_error());
}
function primarykeycondition()
{
 global $_POST;
 $pk = "";
 $pk .= "(`Id`";
 if (@$_POST["xId"] == "") {
   $pk .= " IS NULL";
 }else{
 $pk .= " = " .sqlvalue(@$_POST["xId"], false);
 };
 $pk .= ")";
 return $pk;
}
?>


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@  Secure Code  @@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?php session_start();
if (!login()) exit;
function login()
{
global $_POST;
global $_SESSION;
global $_GET;
if (isset($_GET["a"]) && ($_GET["a"] == 'logout')) $_SESSION["logged_in"] = false;
if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
if (!$_SESSION["logged_in"]) {
$login = "";
$password = "";
if (isset($_POST["login"])) $login = @$_POST["login"];
if (isset($_POST["password"])) $password = @$_POST["password"];
if (($login != "") && ($password != "")) {
$conn = mysql_connect("localhost", "MOOSEUSERNAME", "MOOSEPASSWORD");
mysql_select_db("MOOSEDATABASE");

>>>>>>>>>>>>>>>>>>>>>>>>
$sql = "select txn_id from woodward_pay where payer_email='$login'";
<<<<<<<<<<<<<<<<<

$res = mysql_query($sql, $conn) or die(mysql_error());
$row = mysql_fetch_assoc($res) or $row = array(0 => "");;
if (isset($row)) reset($row);
if (isset($password) && ($password == trim(current($row)))) {
$_SESSION["logged_in"] = true;
}
else {
?>
<p><b><font color="-1">Sorry, the login/password combination you've entered is invalid</font></b></p>
<?php } } }if (isset($_SESSION["logged_in"]) && (!$_SESSION["logged_in"])) { ?>

<form name=MOOSEFORMNAME action="Trim.php" method="post">

<table class="FearFarm" width=400 cellspacing="1" cellpadding="4" border=1>
<tr><td class="Fear">Username<td><input type="text" name="login" value="<?php echo $login ?>"></td></tr><tr><td class="Fear">Password</td><td><input type="password" name="password" value="<?php echo $password ?>"></td></tr><tr><td><input type="submit" name="action" value="Login"></td></tr></table></form>

<?php
 }
 if (!isset($_SESSION["logged_in"])) $_SESSION["logged_in"] = false;
 return $_SESSION["logged_in"];
}
function connect(){
 $conn = mysql_connect("localhost", "MOOSEUSERNAME", "MOOSEPASSWORD");
 mysql_select_db("MOOSEDATABASE");
 return $conn;
}
?>
<a href="Trim.php">Tirm</a><br>
<a href="Trim.php?a=logout">Logout</a><br>

##############################################
##############################################
##############################################
##############################################
###############  conact Form #################
##############################################
##############################################
##############################################
##############################################
##############################################

<form name="MOOSEFORMNAME" action="<?php the_permalink(); ?>" method="post">
<table class="FearFarm" border="0" cellpadding="0" cellspacing="0" width="122">
<?php
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'On');
ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/error_log');
include ("postMOOSEFORMNAME.php");
$fearfarmz="go";
echo "</div></div>";
$submit=$_POST['submit'];
if (($submit=='submit') && ($fearfarmz=='em'))
{
echo "<div id=\"em\"><font color=#ff0000>Your Message has not been sent. Required fields are marked with a *.</font></div>";
}
?>
<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED01'] || $_POST['MOOSEFILED01'] == " " || strlen($_POST['MOOSEFILED01'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL01</font>";
}else{
echo "<font color=#000000>MOOSELABEL01</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED02'] || $_POST['MOOSEFILED02'] == " " || strlen($_POST['MOOSEFILED02'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL02</font>";
}else{
echo "<font color=#000000>MOOSELABEL02</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED03'] || $_POST['MOOSEFILED03'] == " " || strlen($_POST['MOOSEFILED03'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL03</font>";
}else{
echo "<font color=#000000>MOOSELABEL03</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED04'] || $_POST['MOOSEFILED04'] == " " || strlen($_POST['MOOSEFILED04'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL04</font>";
}else{
echo "<font color=#000000>MOOSELABEL04</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED05'] || $_POST['MOOSEFILED05'] == " " || strlen($_POST['MOOSEFILED05'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL05</font>";
}else{
echo "<font color=#000000>MOOSELABEL05</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED06'] || $_POST['MOOSEFILED06'] == " " || strlen($_POST['MOOSEFILED06'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL06</font>";
}else{
echo "<font color=#000000>MOOSELABEL06</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED07'] || $_POST['MOOSEFILED07'] == " " || strlen($_POST['MOOSEFILED07'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL07</font>";
}else{
echo "<font color=#000000>MOOSELABEL07</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED08'] || $_POST['MOOSEFILED08'] == " " || strlen($_POST['MOOSEFILED08'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL08</font>";
}else{
echo "<font color=#000000>MOOSELABEL08</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED09'] || $_POST['MOOSEFILED09'] == " " || strlen($_POST['MOOSEFILED09'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL09</font>";
}else{
echo "<font color=#000000>MOOSELABEL09</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED10'] || $_POST['MOOSEFILED10'] == " " || strlen($_POST['MOOSEFILED10'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL10</font>";
}else{
echo "<font color=#000000>MOOSELABEL10</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED11'] || $_POST['MOOSEFILED11'] == " " || strlen($_POST['MOOSEFILED11'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL11</font>";
}else{
echo "<font color=#000000>MOOSELABEL11</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED12'] || $_POST['MOOSEFILED12'] == " " || strlen($_POST['MOOSEFILED12'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL12</font>";
}else{
echo "<font color=#000000>MOOSELABEL12</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED13'] || $_POST['MOOSEFILED13'] == " " || strlen($_POST['MOOSEFILED13'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL13</font>";
}else{
echo "<font color=#000000>MOOSELABEL13</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED14'] || $_POST['MOOSEFILED14'] == " " || strlen($_POST['MOOSEFILED14'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL14</font>";
}else{
echo "<font color=#000000>MOOSELABEL14</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED15'] || $_POST['MOOSEFILED15'] == " " || strlen($_POST['MOOSEFILED15'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL15</font>";
}else{
echo "<font color=#000000>MOOSELABEL15</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED16'] || $_POST['MOOSEFILED16'] == " " || strlen($_POST['MOOSEFILED16'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL16</font>";
}else{
echo "<font color=#000000>MOOSELABEL16</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED17'] || $_POST['MOOSEFILED17'] == " " || strlen($_POST['MOOSEFILED17'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL17</font>";
}else{
echo "<font color=#000000>MOOSELABEL17</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED18'] || $_POST['MOOSEFILED18'] == " " || strlen($_POST['MOOSEFILED18'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL18</font>";
}else{
echo "<font color=#000000>MOOSELABEL18</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED19'] || $_POST['MOOSEFILED19'] == " " || strlen($_POST['MOOSEFILED19'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL19</font>";
}else{
echo "<font color=#000000>MOOSELABEL19</font>";}
?></td>
</tr>

<tr>
<td class="Farm" valign=top>
<?if (!$_POST['MOOSEFILED20'] || $_POST['MOOSEFILED20'] == " " || strlen($_POST['MOOSEFILED20'])>30)
{
$fearfarmz="em";
echo "<font color=#ff0000>*</font> <font color=#000000>MOOSELABEL20</font>";
}else{
echo "<font color=#000000>MOOSELABEL20</font>";}
?></td>
</tr>


<tr>
<td class="Farm" valign="top" colspan=4><center><input type="submit" Name="submit" value="submit" alt="Please Submit"></td>
</tr>
</table>
</form>
<?
if ($fearfarmz=='go')
{
$fearfarmz=$_POST['fearfarmz'];
include ("postMOOSEFORMNAME.php");
$MOOSEFILED01=addslashes($MOOSEFILED01);
$MOOSEFILED01=addslashes($MOOSEFILED01);
$MOOSEFILED02=addslashes($MOOSEFILED02);
$MOOSEFILED03=addslashes($MOOSEFILED03);
$MOOSEFILED04=addslashes($MOOSEFILED04);
$MOOSEFILED05=addslashes($MOOSEFILED05);
$MOOSEFILED06=addslashes($MOOSEFILED06);
$MOOSEFILED07=addslashes($MOOSEFILED07);
$MOOSEFILED08=addslashes($MOOSEFILED08);
$MOOSEFILED09=addslashes($MOOSEFILED09);
$MOOSEFILED10=addslashes($MOOSEFILED10);
$MOOSEFILED11=addslashes($MOOSEFILED11);
$MOOSEFILED12=addslashes($MOOSEFILED12);
$MOOSEFILED13=addslashes($MOOSEFILED13);
$MOOSEFILED14=addslashes($MOOSEFILED14);
$MOOSEFILED15=addslashes($MOOSEFILED15);
$MOOSEFILED16=addslashes($MOOSEFILED16);
$MOOSEFILED17=addslashes($MOOSEFILED17);
$MOOSEFILED18=addslashes($MOOSEFILED18);
$MOOSEFILED19=addslashes($MOOSEFILED19);
$MOOSEFILED20=addslashes($MOOSEFILED20);
$result= mysql_select_db($dbName,$conn);
$query = "insert into MOOSETABLENAME (todae,ip,MOOSEFILED01, MOOSEFILED02, MOOSEFILED03, MOOSEFILED04, MOOSEFILED05, MOOSEFILED06, MOOSEFILED07, MOOSEFILED08, MOOSEFILED09, MOOSEFILED10, MOOSEFILED11, MOOSEFILED12, MOOSEFILED13, MOOSEFILED14, MOOSEFILED15, MOOSEFILED16, MOOSEFILED17, MOOSEFILED18, MOOSEFILED19, MOOSEFILED20) values ('$todae','$ip','$MOOSEFILED01', '$MOOSEFILED02','$MOOSEFILED03','$MOOSEFILED04','$MOOSEFILED05','$MOOSEFILED06','$MOOSEFILED07','$MOOSEFILED08','$MOOSEFILED09','$MOOSEFILED10','$MOOSEFILED11','$MOOSEFILED12','$MOOSEFILED13','$MOOSEFILED14','$MOOSEFILED15','$MOOSEFILED16','$MOOSEFILED17','$MOOSEFILED18','$MOOSEFILED19','$MOOSEFILED20')" ;$result1 = mysql_query($query, $conn);
echo "<div id=\"go\"><font color=#ff0000>Your Message has been sent!</font></div>";

$to  = "MOOSEEMAILERFORAUTO";
$subject = "Contact";
$from = "MOOSEEMAILERFORAUTO";
$message ="$FD_First,$FD_Last,$FD_Email,$FD_Subject,$FD_Message.";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= '<MOOSEEMAILERFORAUTO>' . "\r\n";
$headers = "From: MOOSEEMAILERFORAUTO";
mail($to, $subject, $message,  $headers);

$to  = "$FD_Email";
$subject = "Thanks for Contacting Us";
$from = "MOOSEEMAILERFORAUTO";
$message ="Thanks for sending your message via the contact form on our website. We will be getting back to you soon.";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= '<MOOSEEMAILERFORAUTO>' . "\r\n";
$headers = "From: MOOSEEMAILERFORAUTO";
mail($to, $subject, $message,  $headers);
}
$submit=$_POST['submit'];
if (($submit=='submit') && ($fearfarmz=='em'))
{

echo "<div id=\"em\"><font color=#ff0000>Your Message has not been sent. Required fields are marked with a *.</font></div>";
}
?>
<br>


#########################################
#########################################
#########################################
#########################################
######################################### townsend set up
#########################################
#########################################
#########################################
#########################################
#########################################
#########################################


<a href="../formpage?th_sentto=MOOSESENTTO&form=MOOSEFORMNAME">MOOSESENTTO</a>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ I Frame Code
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<?php
$th_sentto=$_GET['th_sentto'];
$form=$_GET['form'];
?>
<iframe src="../FORMSPAGES/<?php echo $MOOSEFORMNAME;?>01.php" name="frame1" scrolling="auto" frameborder="no" align="center" height = "500px" width = "500px">
</iframe>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ MOOSEFORMNAME02.php
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<link rel="stylesheet" href="../feardearg02.css">
<form name="MOOSEFORMNAME" action="MOOSEFORMNAME02.php" method="post">
<table class="FearFarm" border="0" cellpadding="5" cellspacing="2" width="600">
<?php
$th_sentto  = "onclick@yahoo.com";
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'Off');
ini_set('log_errors', 'On');
ini_set('error_log', '/path/to/error_log');
$submit=$_POST['submit'];
if (isset($submit))
{
include ("../postMOOSEFORMNAME.php");
$MOOSEFILED01=addslashes($MOOSEFILED01);
$MOOSEFILED02=addslashes($MOOSEFILED02);
$MOOSEFILED03=addslashes($MOOSEFILED03);
$MOOSEFILED04=addslashes($MOOSEFILED04);
$MOOSEFILED05=addslashes($MOOSEFILED05);
$MOOSEFILED06=addslashes($MOOSEFILED06);
$MOOSEFILED07=addslashes($MOOSEFILED07);
$MOOSEFILED08=addslashes($MOOSEFILED08);
$MOOSEFILED09=addslashes($MOOSEFILED09);
$MOOSEFILED10=addslashes($MOOSEFILED10);
$MOOSEFILED11=addslashes($MOOSEFILED11);
$MOOSEFILED12=addslashes($MOOSEFILED12);
$MOOSEFILED13=addslashes($MOOSEFILED13);
$MOOSEFILED14=addslashes($MOOSEFILED14);
$MOOSEFILED15=addslashes($MOOSEFILED15);
$MOOSEFILED16=addslashes($MOOSEFILED16);
$MOOSEFILED17=addslashes($MOOSEFILED17);
$MOOSEFILED18=addslashes($MOOSEFILED18);
$MOOSEFILED19=addslashes($MOOSEFILED19);
$MOOSEFILED20=addslashes($MOOSEFILED20);
if (
!$_POST['MOOSEFILED01'] || $_POST['MOOSEFILED01'] == " " || strlen($_POST['MOOSEFILED01'])>255 ||
!$_POST['MOOSEFILED02'] || $_POST['MOOSEFILED02'] == " " || strlen($_POST['MOOSEFILED02'])>255  ||
!$_POST['MOOSEFILED03'] || $_POST['MOOSEFILED03'] == " " || strlen($_POST['MOOSEFILED03'])>255  ||
!$_POST['MOOSEFILED04'] || $_POST['MOOSEFILED04'] == " " || strlen($_POST['MOOSEFILED04'])>255  ||
!$_POST['MOOSEFILED05'] || $_POST['MOOSEFILED05'] == " " || strlen($_POST['MOOSEFILED05'])>255  ||
!$_POST['MOOSEFILED06'] || $_POST['MOOSEFILED06'] == " " || strlen($_POST['MOOSEFILED06'])>255  ||
!$_POST['MOOSEFILED07'] || $_POST['MOOSEFILED07'] == " " || strlen($_POST['MOOSEFILED07'])>255  ||
!$_POST['MOOSEFILED08'] || $_POST['MOOSEFILED08'] == " " || strlen($_POST['MOOSEFILED08'])>255  ||
!$_POST['MOOSEFILED09'] || $_POST['MOOSEFILED09'] == " " || strlen($_POST['MOOSEFILED09'])>255  ||
!$_POST['MOOSEFILED10'] || $_POST['MOOSEFILED10'] == " " || strlen($_POST['MOOSEFILED10'])>255  ||
!$_POST['MOOSEFILED11'] || $_POST['MOOSEFILED11'] == " " || strlen($_POST['MOOSEFILED11'])>255  ||
!$_POST['MOOSEFILED12'] || $_POST['MOOSEFILED12'] == " " || strlen($_POST['MOOSEFILED12'])>255  ||
!$_POST['MOOSEFILED13'] || $_POST['MOOSEFILED13'] == " " || strlen($_POST['MOOSEFILED13'])>255  ||
!$_POST['MOOSEFILED14'] || $_POST['MOOSEFILED14'] == " " || strlen($_POST['MOOSEFILED14'])>255  ||
!$_POST['MOOSEFILED15'] || $_POST['MOOSEFILED15'] == " " || strlen($_POST['MOOSEFILED15'])>255  ||
!$_POST['MOOSEFILED16'] || $_POST['MOOSEFILED16'] == " " || strlen($_POST['MOOSEFILED16'])>255  ||
!$_POST['MOOSEFILED17'] || $_POST['MOOSEFILED17'] == " " || strlen($_POST['MOOSEFILED17'])>255  ||
!$_POST['MOOSEFILED18'] || $_POST['MOOSEFILED18'] == " " || strlen($_POST['MOOSEFILED18'])>255  ||
!$_POST['MOOSEFILED19'] || $_POST['MOOSEFILED19'] == " " || strlen($_POST['MOOSEFILED19'])>255  ||  
!$_POST['MOOSEFILED20'] || $_POST['MOOSEFILED20'] == " " || strlen($_POST['MOOSEFILED20'])>255
)
{
echo "<tr><td class=\"Dearg\" valign=\"top\" colspan=8><H1><font color=\"red\">NOT SENT!!</font></H1>All fields with an <font color=\"red\">*</font> are required. Thank-you";
?>
<tr>
<td class="Fear" valign=top>MOOSELABEL01<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta"  type="text" name="MOOSEFILED01" size="24" value="<?php echo $MOOSEFILED01; ?>"</td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL02<font color="red">*</font> </td>
<td class="Farm" valign="top"><input  class="texta" type="text" name="MOOSEFILED02" size="24" value="<?php echo $MOOSEFILED02; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL03<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED03" size="24" value="<?php echo $MOOSEFILED03; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL04<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED04" size="24" value="<?php echo $MOOSEFILED04; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL05<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED05" size="24" value="<?php echo $MOOSEFILED05; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL06<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED06" size="24" value="<?php echo $MOOSEFILED06; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL07<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED07" size="24" value="<?php echo $MOOSEFILED07; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL08<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED08" size="24" value="<?php echo $MOOSEFILED08; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL09<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED09" size="24" value="<?php echo $MOOSEFILED09; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL10<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED10" size="24" value="<?php echo $MOOSEFILED10; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL11<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED11" size="24" value="<?php echo $MOOSEFILED11; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL12<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED12" size="24" value="<?php echo $MOOSEFILED12; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL13<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED13" size="24" value="<?php echo $MOOSEFILED13; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL14<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED14" size="24" value="<?php echo $MOOSEFILED14; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL15<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED15" size="24" value="<?php echo $MOOSEFILED15; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL16<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED16" size="24" value="<?php echo $MOOSEFILED16; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL17<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED17" size="24" value="<?php echo $MOOSEFILED17; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL18<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED18" size="24" value="<?php echo $MOOSEFILED18; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL19<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED19" size="24" value="<?php echo $MOOSEFILED19; ?>"> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL20<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED20" size="24" value="<?php echo $MOOSEFILED20; ?>"> </td>
</tr>
<tr>
<td class="Farm" valign="top" colspan=4><center><input type="submit" Name="submit" value="submit" alt="Please Submit"></td>
</tr>
</table>
</form>

<?php
}
else
{
include ('../conect/MOOSEMESSAGECONNECT');
$result= mysql_select_db($dbName,$conn);
$query = "insert into MOOSETABLENAME (todae,ip,MOOSEFILED01, MOOSEFILED02, MOOSEFILED03, MOOSEFILED04, MOOSEFILED05, MOOSEFILED06, MOOSEFILED07, MOOSEFILED08, MOOSEFILED09, MOOSEFILED10, MOOSEFILED11, MOOSEFILED12, MOOSEFILED13, MOOSEFILED14, MOOSEFILED15, MOOSEFILED16,  MOOSEFILED17,  MOOSEFILED18, MOOSEFILED19,MOOSEFILED20) values ('$todae','$ip','$MOOSEFILED01', '$MOOSEFILED02','$MOOSEFILED03','$MOOSEFILED04','$MOOSEFILED05','$MOOSEFILED06','$MOOSEFILED07','$MOOSEFILED08','$MOOSEFILED09','$MOOSEFILED10','$MOOSEFILED11','$MOOSEFILED12','$MOOSEFILED13','$MOOSEFILED14','$MOOSEFILED15','$MOOSEFILED16','$MOOSEFILED17','$MOOSEFILED18','$MOOSEFILED19','$MOOSEFILED20')" ;
$result1 = mysql_query($query, $conn);
echo "<center>Successfully Submitted!</center>";
}
}
?>

<?php
$to  = "";
$subject = "Submission on MOOSEFORMNAME";
$from = "Gary@MooseLoose.com";
$message ="Submission on MOOSEFORMNAME Form.
\r\n\n $MOOSEFILED01
\n $MOOSEFILED02
\n $MOOSEFILED03
\n $MOOSEFILED04
\n $MOOSEFILED05
\n $MOOSEFILED06
\n $MOOSEFILED07
\n $MOOSEFILED08
\n $MOOSEFILED09
\n $MOOSEFILED10
\n $MOOSEFILED11
\n $MOOSEFILED12
\n $MOOSEFILED13
\n $MOOSEFILED14
\n $MOOSEFILED15
\n $MOOSEFILED16
\n $MOOSEFILED17
\n $MOOSEFILED18
\n $MOOSEFILED19
\n $MOOSEFILED20
\n\n Gary
\n ";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'MooseLoose Contact<Gary@MooseLoose.com>' . "\r\n";
$headers = "From: Gary@MooseLoose.com";
mail($to, $subject, $message,  $headers);

?>

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ MOOSEFORMNAME01.php
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

<link rel="stylesheet" href="../feardearg02.css">
<form name="MOOSEFORMNAME" action="MOOSEFORMNAME02.php" method="post">
<table class="FearFarm" border="0" cellpadding="5" cellspacing="2" width="600">
<tr>
<td class="Fear" valign=top>MOOSELABEL01<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta"  type="text" name="MOOSEFILED01" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL02<font color="red">*</font> </td>
<td class="Farm" valign="top"><input  class="texta" type="text" name="MOOSEFILED02" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL03<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED03" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL04<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED04" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL05<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED05" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL06<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED06" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL07<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED07" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL08<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED08" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL09<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED09" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL10<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED10" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL11<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED11" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL12<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED12" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL13<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED13" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL14<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED14" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL15<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED15" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL16<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED16" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL17<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED17" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL18<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED18" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL19<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED19" size="24" value=""> </td>
</tr>
<tr>
<td class="Fear" valign=top>MOOSELABEL20<font color="red">*</font> </td>
<td class="Farm" valign="top"><input class="texta" type="text" name="MOOSEFILED20" size="24" value=""> </td>
</tr>
<tr>
<td class="Farm" valign="top" colspan=4><center><input type="submit" Name="submit" value="submit" alt="Please Submit"></td>
</tr>
</table>
</form>