มีวิธีส่งค่าตัวแปรแบบ POST ไปหลายไฟล์ ใน 1 ปุ่ม submit ไหมครับ
Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
function to_submit() {
document.form1.target = "iframe_1";
document.form1.method = "post";
document.form1.action = "Index.php";
document.form1.submit();
document.form1.target = "iframe_1";
document.form1.method = "post";
document.form1.action = "Show.php";
document.form1.submit();
document.form1.target = "iframe_1";
document.form1.method = "post";
document.form1.action = "Ship.php";
document.form1.submit();
document.form1.target = "iframe_1";
document.form1.method = "post";
document.form1.action = "Should.php";
document.form1.submit();
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="textfield" id="textfield" />
<input type="button" name="button" id="button" value="Submit" />
</form>
<iframe name="iframe_1" width="0" height="0" frameborder="0" style="display:none;"></iframe>
</body>
</html>
Date :
2014-01-29 08:15:17
By :
pantatonic
Load balance : Server 02