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/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to