Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Perl CGI multiple buttons

by 7stud (Deacon)
on Feb 26, 2013 at 01:55 UTC ( #1020596=note: print w/replies, xml ) Need Help??

in reply to Perl CGI multiple buttons

In second form there are couple of buttons. I want a code call sub routines within second form.

If by that you mean: when a user clicks on one of those buttons, you want to execute some code, then the best solution would be to write some javascript that intercepts the click and executes the code--all within the client browser.

The javascript code could also send a request to a server which then executes a cgi script and returns the results to the javascript code. You might need to do that if you needed to retrieve some dynamically changing data from a database.

Because of telnet session, i want to continue in second page itself

Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communication

So there are no buttons in telnet.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020596]
[LanX]: I'm not calling for shooting Trump with a golf ball ;-)
[LanX]: this bullshit theater is distracting us from real issues
[choroba]: he will resign
LanX "I put lipstick on a pig,"

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-08-18 13:04 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (301 votes). Check out past polls.