Code: Select all
<?
header('charset=utf-8');
include("include/connect.php");
$var1 = $_POST['one'];
$var2 = $_POST['two'];
$var3 = $_POST['three'];
$var4 = $_POST['four'];
/*$total = $var2+$var4;*/
$sql = "INSERT INTO `tb_dss` SET ";
$sql .= "dss_1='$var1',";
$sql .= "dss_2='$var2',";
$sql .= "dss_3='$var3',";
$sql .= "dss_4='$var4',";
$sql .= "total='$total'";
$qry = mysql_query($sql);
exit ("<script>
window.location.href = 'aa1.html';
</script>");
?>
Code: Select all
if ($var1 ==a || $var2 ==15000 || $var3 ==a){
exit ("<script>
window.location.href = 'aa1.html';
</script>");
}
ขอบคุณพี่ๆล่วงหน้าครับ