我想将一个 id 值从 html 添加到 php。这是我的脚本:
HTML 代码:
<body>
<script type="text/javascript" src="jquery/jquery.min.js"></script>
<script>
xy.on("click", function() {
window.location = "/pieplots/pie.php";
var id=100; //HOW CAN I ADD THIS VELUE, TO THE OPENED pie.php?
});
PHP代码:
<?php // content="text/plain; charset=utf-8"
$id = $_POST['id'];
echo $id;
谢谢你的帮助