照片库问题 [英] photo gallery question
问题描述
嗨大家好
我需要帮助请
i设计了一个大约20张图片的图库,它们是
显示在拇指钉视图和查看较大版本的
图像我添加了一个单选按钮和一个按钮,以便用户
选择图片使用单选按钮并单击按钮
在另一个窗口中打开较大版本的图片,但我的问题
是我知道如何将选择传递到第二页但
的问题是如何传递所选图片未选中的值。
第一个html页面代码是:
< form method =" POST" action =" gallery.php">
< input type =" radio"值= QUOT; V1" name =" nature">
< p>< input type =" radio"值= QUOT; V1" name =" nature">< / p>
< p>< input type =" radio"值= QUOT; V1" name =" nature">
< / form>
gallery.php代码是:
< ?php
$ image = $ _POST [''nature''];
echo" $ image"
?>
我的问题是,这种方式给了我单选按钮的名称我
选择不是图像所以我怎么能让图像显示不是
单选按钮名称(不是V1)
预先感谢您的帮助
shror
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
推荐答案
image =
_POST [''nature''];
echo"
_POST[''nature''];
echo "
image"
?>
我的问题是这种方式给了我单选按钮的名称我
select不是图像所以如何让图像显示不是
单选按钮名称(不是V1)
提前感谢您的帮助
>
shror
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
这篇关于照片库问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!