I want to create the from that can change product data in mySQL made by PHP.
and I have the key column that auto increment and specify each product.
When i click to edit product link .it will pass the key values that i get from each product
and link to editPage.php
$Key = $data['Key'];
<a href=\"editPage.php?Key=".$Key."\">edit</a>
in editPage.php i get the key values from previous page and i want pass thisvalues to next page with submit form button.I attach Key values in action link.
<?$Key = $_GET["Key"];?>
<form id="form2" name="form1" method="post" action="editWeb.php?Key=".$Key." \">
It don't work, Can I pass Key values with another ways. Tell me if you want more information Thanks!!:))
you need to create a
hidden
input field and place that value in it. and then submit the formGET->show hidden value on required page url.generally we use GET to pass values, it depend upon your requirement.
You need to echo the value.
You could also use a hidden input: