in reply to Re: How can I run a subroutine from an anchor tag (a href....../a)?
in thread How can I run a subroutine from an anchor tag (a href....../a)?

One approach involves creating an HTML form whose form handler is the CGI script you want to run.

Another approach is to dispense with form and its GET request entirely. If your domain is mydomain.com and your script is named myscript.pl then have your link point to http://mydomain.com/myscript.pl

Once the user clicks on http://mydomain.com/myscript.pl, he will only see whatever output it is that myscript.pl creates, so you must do some additional CGI programming in order to create that output. You might wish to familiarize yourself with CGI.pm in order to help you do so. You can learn about CGI.pm here.

  • Comment on Re: Re: How can I run a subroutine from an anchor tag (a href....../a)?