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 echo the value.
<form id="form2" name="form1" method="post" action="editWeb.php?Key=<? echo $Key ?>"/>
You could also use a hidden input:
<form id="form2" name="form1" method="post" action="editWeb.php"/>
<input type="hidden" name="Key" value="<? echo $Key ?>" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With