I'm creating a simple add to cart database function and I'm currently stuck half way through. I have a couple of images that is shown on a table, a pagination style. Beneath the images are buttons that are automatically created.
The reason why there are submit buttons beneath the images is because once the submit button is clicked, that item will be inputted in the database depending on which button is clicked. I'm still a noob in php and I'm having some problem how to figure out a way to let the browser know which has been click in order to change my sql variable $imagename in "INSERT INTO tblreserve VALUES($imagename)" and execute it on another page.
<img src=' . $photoID . ' border="0" />Name: '.$photoName.'<br /> Price: '.$price.'
<form method="post" action="showreserve.php">
<input type=\'submit\' value=Reserve name='.$photoName.' />
I hope you get what I'm trying to do. Feel free to ask anything about my problem if something is unclear to you guys.