I would like to add an id value from html to php. This is my script:
HTML CODE:
<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 CODE:
<?php // content="text/plain; charset=utf-8"
$id = $_POST['id'];
echo $id;
Thanks for your help
"/pieplots/pie.php?id=" + id