Reply to Re: NEED HELP!?! echoing image

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация