Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

how do i call a perl script on onClick event of the button

by turumkhan (Novice)
on Jun 29, 2001 at 19:18 UTC ( #92667=perlquestion: print w/ replies, xml ) Need Help??
turumkhan has asked for the wisdom of the Perl Monks concerning the following question:

I have a button(not of the type submit) on the html form how do i call perl script on the click of that button.
Note: The button is of the type button not submit.

Comment on how do i call a perl script on onClick event of the button
Re: how do i call a perl script on onClick event of the button
by Chady (Priest) on Jun 30, 2001 at 12:14 UTC

    not actually Perl related, it's javascript related, and it won't run with JavaScript disabled browsers... your best bet is to use a submit button, other wise, add this to the input tag:

    onClick = "self.location='your_perl_script.pl?with=possible&parameters +=passed';"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-09-24 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls