CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
submission button oddity


New User

Feb 8, 2003, 3:18 PM

Post #1 of 3 (401 views)
submission button oddity Can't Post

I'm trying to use a clickable image button as a submit button, and im using the shortcut:

print image_button(-name=>'name', -src=>'image_url');

to do this. It displays the image but when clicked it doesn't seem to send the name parameter
(I test for/expect it). However when I use a normal button like:

print submit(-name=>'name', -value=>'submit');

it works just fine. Anyone ever have this problem or any ideas what's wrong? (I tried it in mulitple browsers as well as without the shortcuts)


Feb 9, 2003, 12:40 AM

Post #2 of 3 (399 views)
Re: [sojin] submission button oddity [In reply to] Can't Post

My perldoc tells me the following about what happens when you click an image_button:

       image_button() produces a clickable image.  When it's 
clicked on the position of the click is returned to your
script as "button_name.x" and "button_name.y", where "but­
ton_name" is the name you've assigned to it.

Are you expecting that beahivour but it doesn't happen? Or are you expecting something else to happen?

New User

Feb 9, 2003, 1:50 AM

Post #3 of 3 (396 views)
Re: [thodi] submission button oddity [In reply to] Can't Post

ah, yes it does say that. I was testing for 'button_name' and apparently doing


will not return true with an image. I tested for 'button_name.x' and it worked. Seems like you should be able to do what I tried. It's more intuitive, but it's Perl you cant be too picky I suppose. Thanks.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives