$ID = $_POST['ID'];
$wh = $_POST['wh'];
$Name_1 = $_POST['Name_1'];
$Name_2 = $_POST['Name_2'];
$Address = $_POST['Address'];
$City = $_POST['City'];
$State = $_POST['State'];
$ZipCode = $_POST['ZipCode'];
$Phone = $_POST['Phone'];
$email = $_POST['email'];
$Link = $_POST['Link'];
$status = $_POST['status'];
$pay = $_POST['pay'];
$rate = $_POST['rate'];
$ref = $_POST['ref'];
$dtnum = date(Ymd);
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_contacts', $dbcnx);
$into = @mysql_query("UPDATE agent SET Name1='$Name_1',Name2='$Name_2',Address='$Address',City='$City',State='$State',ZipCode='$ZipCode',Country='$Country',Phone='$Phone',email='$email',Link='$Link',status='$status',pay='$pay',rate='$rate',ref='$ref',dtnum='$dtnum' WHERE ID='$ID'");
if (!$into) {
echo("
Error Updating Agent Profile.
" . 'Error: '. mysql_error(). '
');
}else{
echo("
Successful Update to Eco-\$mart Agents
");
}
?>
echo("