Re: Using custom "button" form element instead of standard "submit"?

From: Date: Thu, 30 Jan 2003 11:47:34 +0000
Subject: Re: Using custom "button" form element instead of standard "submit"?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-133631@lists.php.net to get a copy of this message
At 12:18 30.01.2003, Durwood Gafford spoke out and said: --------------------[snip]-------------------- >sure this would work but it'd be VERY inefficient in my application. It's a >file browser application so i have hundreds of folder icons on a page .. the >'submit' element will pass back the name of the button clicked and it would >be available immediately/directly, which is what i want. BUT an 'image' >element would require me to loop through ALL buttons doing an 'isset' test >on each one. --------------------[snip]-------------------- ??? <input type="submit" name="sample_a"> <input type="image" name="sample_b" src="myimg.gif"> With the first method, you'd need to test for a button named 'sample_a'. For the second method, you'd need to test for a button named 'sample_b_x'. So where's the difference? You need to "loop" through all available button names anyway, orhave I completely misunderstood your question? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#133631) next »