Click to See Complete Forum and Search --> : Web Interface with Perl


minulescu
08-21-2007, 07:30 PM
I'm having to create a web interface where a local webpage will collect information in a form style.

Upon clicking the submit button, a perl script needs to be ran.

Can anybody tell me what is required in order to achieve this. It doesn't seem too complicated, I just don't know how/if scripts can be run directly from an html file.
Also, if someone could point me in the right direction (books,tutorials,other websites), I would appreciate that as well. I basically need something like this at the end of the page.

//upon clicking submit button, run the following
/usr/local/bin/myScript.pl -name=<name from form> -age=<age from form>

Thanks for any help!!

disgracian
09-05-2007, 10:43 PM
The HTML form element should look like this:
<form method="POST" action="path/to/myScript.pl">
The path in the action attribute is not the local file path (e.g., /usr/local/...) but the path in relation to the domain.

Cheers,
D.