Re: Get the value of a <input type=image...>

From: Date: Mon, 25 Jun 2001 06:35:25 +0000
Subject: Re: Get the value of a <input type=image...>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55104@lists.php.net to get a copy of this message
> I always use "InputImageName_x > 0" to know if a button was clicked. > > How can I get the value on my input type=image? You can't. > Like: <input type=image name=contatc value="002545645"> > > how can I get "002545645" with "$contatc"? Well, okay, what you *COULD* do is something like this: <input type=hidden name=images[contata] value=002545643> <input type=hidden name=images[contatb] value=002545644> <input type=hidden name=images[contatc] value=002545645> <input type=image name=contata> <input type=image name=contatb> <input type=image name=contatc> -------------------- <?php if (isset($contata_x)){ $code = $images['contata']; } elseif (isset($contatb_x)){ $code = $images['contatb']; } elseif (isset($contatc_x)){ $code = $imgaes['contatc']; } # more PHP here ?> -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#55104) next »