Okay,
I changed the code from the submit button to just before the if isset trim
it now reads:
if($comm!=''){
$db=mysql_connect($database['HOST'],$database['USER'],$database['PASS'])
or die(mysql_error()); mysql_select_db($database['DBNM'],$db) or die(mysql_error());
}
if($comm=='Submit'){
if(mysql_query ("INSERT INTO `otc`(`contributing_org`,`org_address`,`org_city`,`org_state`,
`org_zip`,`org_phone`,`org_email`, `org_contact`,`cont_address`, `cont_city`, `cont_zip`,
`cont_phone`,`cont_email`,`rec_comm`,`comm_add`,`comm_city`, `comm_zip`,`comm_phone`,`comm_email`,
`cont_date`,`cont_amt`,`inkind_descrip`,`county`,`election_date`),
VALUES('$contributing_org','$org_address','$org_city','$org_state','$org_zip',
'$org_phone','$org_email', '$org_contact','$cont_address','$cont_city',
'$cont_zip','$cont_phone','$cont_email','$rec_comm','$comm_add','$comm_city',
'$comm_zip','$comm_phone', '$comm_email','$cont_date','$cont_amt','$inkind_descrip',
'$county','$election_date')",
$db)){
echo "Thank you for filing electronically!";
} else {
echo "Insert Failed?";
}{
if(isset($_POST['submit']))
echo "nothing submitted";{
..the echo "Insert Failed" comes back upon submission....
should I try to do a query on the INSERT INTO otc and the Value $"?