alert("Please enter correct Contact Person Name"); '); } $cust_contact1=$_POST['cust_contact1']; if (!preg_match('/^[0-9]{10}$/',$cust_contact1)) { $valid = true; die( ' '); } $cust_contact2=$_POST['cust_contact2']; if (!preg_match('/^[0-9]{10}$/',$cust_contact2)) { $valid = true; die( ' '); } $cust_remark=$_POST['cust_remark']; } //echo "bbb". $cust_id; $udtSql="UPDATE customer SET cust_contact_name='" . $cust_contact_name . "', cust_contact1='" . $cust_contact1 ."', cust_contact2='" . $cust_contact2 . "', cust_remark='" . $cust_remark . "' WHERE cust_id='" . $cust_id ."'"; $custUdt=mysql_query($udtSql) or die(mysql_error()); ?>