Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: form buttons

by stefan k (Curate)
on Nov 30, 2001 at 15:09 UTC ( #128596=note: print w/ replies, xml ) Need Help??


in reply to form buttons

Usually you give your submit button a value and a name:

<input type="submit" name="action" value="Search"> <input type="submit" name="action" value="Logout">
and if you
use CGI;
you can then test for what action to do:
if (param("action") eq "Search") { # ... } # ...

Please take into account that this comes from the back of my head and I have not been doing CGIs for more than a year now; still it should be correct.

Regards... Stefan
you begin bashing the string with a +42 regexp of confusion


Comment on Re: form buttons
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-08-01 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls