This article is mainly for everyone to bring a solution to the form of the Action property after the pass parameter is not get the problem. Small series feel very good, now share to everyone, also for everyone to make a reference. Follow the small series together to see it, hope to help everyone.
As shown below:
$p _id = $_request[' p_id '];echo '
As the code above, you want to click on the button submission to jump to updateproduct.do.php, the page gets the $p_id, through the URL value to the next page. But every time you click on the button, the address bar is only "Updateproduct.do.php?p_name=11&p_price=22&p_pic=33&p_date=44&p_ Detail=55 "
P_ID is not going to pass. Toss for a while, in fact the reason is very simple, (the following for personal understanding, but the problem solved) under Method=get, the form form receives the form element "name" attribute and the corresponding "value". Want to write by yourself in action? , the value of method must be =post, that is, the second line in the code should read:
<form action= ' updateproduct.do.php?p_id= $p _id ' method= ' post ' >
Change it to this!