|
Posted by C. on 02/25/07 21:59
On 25 Feb, 20:10, "shror" <shahi...@gmail.com> wrote:
>
> i have designed an image gallery of about 20 pictures and they are
> shown in thumb nail views and for viewing the largeer version of the
> images i have added a radio button and a push button, so that the user
> choose the picture using the radio button and click on the push button
> to open the larger version picture in another window, but my problem
> is that i know how to pass the selection to the second page but the
> problem is how to pass the selected picture not selected value.
>
> the first html page code is:
>
> <form method="POST" action="gallery.php">
> <input type="radio" value="V1" name="nature">
> <p><input type="radio" value="V1" name="nature"></p>
> <p><input type="radio" value="V1" name="nature">
> </form>
You need to use different values but the same name. But really, you've
made interaction with the site a lot more complex than it needs to be
- why not just link directly to the larger version of the image - one
click instead of click, scroll, click. Even if you want to do this
with a POST (from the code you've published it should be a GET) it's
just a matter of assigning a value to a hidden field and submitting
the form using javascript.
C.
Navigation:
[Reply to this message]
|