I am working on a project and it contains a button "buy now" for each item. Should I need to create a new php page for each button when the user clicks it? Is there any better way of doing this?
If possible explain with small code. Thank you.
无需为显示按钮创建新页面,您可以简单地通过下一个/购物车页面上的 get 或方法发送项目 ID,例如<a href="http://example.com/cart.php?itemId=<YourItemid>">buy now</a>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.