September 1st, 2013, 12:02 AM
PERL & HTML
Please can anyone provide me with a sample on how to call a perl file to execute from a html button.
I am new to perl, and I tried this
<form action=name.pl method=post>
Please click here:
<input type=submit value="Press">
September 1st, 2013, 07:48 AM
That's probably sufficient, though you may have to provide more information about where the script is located in the web server. It would usually be in the cgi-bin directory, which has been configured to allow perl scripts to execute.
You also have to make sure the script has been given permission to execute.
<meta charset="utf-8" />
<form action="cgi-bin/get_form.cgi" method="POST">
<input type="submit" value="Press">
Last edited by keath; September 1st, 2013 at 09:58 AM.