Posted by Colin Fine on 09/24/06 19:45
jayparaiso@gmail.com wrote:
> form action="index.php#order" method="post" name="image1" id="image1">
> <input name="image1" type="submit" id="image1" value="Buy!">
>
> form action="index.php#order" method="post" name="image2" id="image2">
> <input name="image2" type="submit" id="image3" value="Buy!">
>
> <form name="form1" method="post" action="thankyou.php">
>
> <?php
> if ($_POST[image1]) {
> echo "<img src=\"image/image1.jpg\">";
> }
> if ($_POST[image2]) {
> echo "<img src=\"image/image2.jpg\">";
> }
> ?>
>
> i want in thankyou.php to echo the selected image in index.php#order.
>
> Please help! thanks
>
I don't fully understand what you mean, but in general each form on an
HTML page is independent. If the user pick the Submit in the first form,
the input from that form (image1) will be available in the next page,
but if the user picks a submit in any other form (such as the third one)
then image1 will not be available in the next page.
Colin
[Back to original message]
|