Posted by shror on 02/25/07 20:10
hi every body
I need help please
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>
the gallery.php code is:
<?php
$image = $_POST['nature'];
echo "$image"
?>
my problem is that this way gives me the name of the radio button i
select not the image so how i can make the image get shown not the
radio button name (not V1)
Thanks in advance for your help
shror
Navigation:
[Reply to this message]
|