[thelist] php form variables
Warden, Matt
mwarden at odyssey-design.com
Wed May 31 06:49:56 2000
> if you don't give it a value, it won't work.
> here it's value is set to '', so when it checks $imgbtn, it don't get
anything.
> if you want to get the click event on this image ::
>
> <input type="image" src="img1.gif" name="imgbtn"
> onClick="document.form[x].elements['imgcheck']='true';">
> <input type="hidden" value='false' name="imgcheck">
>
> <?
> if($imgcheck) {
> ......
> }
> ?>
>
> that's how i would do it.
>
> i may be wrong
Actually, I think you have to check for either $imgbutton.x or $imgbutton_x
(depending on which you get from your Web server). When you click an submit
image, the X and Y coordinates of the click location are given as form
variables.
--
mattwarden
mattwarden.com