hi i am working on the following codes , it will take a value from a query and i want to pass the value of the variable to another php page that will do some statements .
this is my form:
<form method="post" >
<input type="hidden" name="id" value="<?php echo $orderId; ?>" />
<button type="submit" class="button" name="Reorder" value="Reorder">Reorder </button>
</form>
here is the page that will receive the data and i will extract them from the form :
extract($_POST);
$orderId=$_POST['id'];
This is the error : Notice: Undefined index: id
extract.i am not sending the user to another page<>the second page will just get the data, nori want to pass the value of the variable to another php page.. so there is only 1 page or 2 pages?? If 2 as you state multiple times how/when does the user get there?<form method="post" >will not send the user anywhere. Are you sending the user to the next page with JS or how do they get there?