Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: CGI question: elegant way to have three form image buttons doing different things?

by hatter (Pilgrim)
on Sep 14, 2001 at 13:17 UTC ( [id://112386]=note: print w/replies, xml ) Need Help??


in reply to CGI question: elegant way to have three form image buttons doing different things?

I thought I had a similar problem a few weeks ago. Turns out it was a different problem, but I only figured that after I'd found a solution. Instead of using <input type=image> which I found various problems with presentation on different browsers, you can use the HTML4-friendly (that is, if you're a NS4 fan, it won't work) you can use
<button type=submit name=foo value=bar src=image1.gif alt=whatever>
Then check for the buttons name and value in whichever way your script likes.

the hatter

  • Comment on Re: CGI question: elegant way to have three form image buttons doing different things?
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found