ok.. im having problems what i need to happen is if the check box is checked it needs to send the values from the form to two different tables and when its uncheckd to send to one table my coding is..
[code=php]<?php
$conn = mysql_connect(“localhost”, “*****”, “********”);
mysql_select_db(“ebay”,$conn);
$sqlebay = “insert into nametable values(‘$_POST[name1]’, ‘$_POST[name2],’, ‘$_POST[name3]’, ‘$_POST[select]’)”;
mysql_select_db = (“apccompunet, $conn);
$sqlapc = “insert into nametable values (‘$_POST[name1]’, ‘$_POST[name2]’, ‘$_POST[name3]’, ‘$_POST[select]”);
if $_POST[apcreg] = apcreg {
mysql_query($sqlebay, $sqlapc, $conn) or die(mysql_error());
echo “added to apc and ebay”;
} else {
mysql_query($sqlebay, $conn) or die(mysql_error());
echo “added to ebay”;
};
?>
oh before i forget i dont get any error messages when i view the page
thanks ?