http://qs321.pair.com?node_id=92667

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

Replies are listed 'Best First'.
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';"
Re: how do i call a perl script on onClick event of the button
by mendeepak (Scribe) on Mar 08, 2012 at 12:00 UTC

    you can go for JavaScript, Ajax or jquery to actually get through your work faster. Check this link out Ajax

    Originally posted as a Categorized Answer.

A reply falls below the community's threshold of quality. You may see it by logging in.