How can I get my HTML form to pass on information inputted by a user to a Perl program?

tim85a

New member
How can I get my HTML form to pass on information inputted by a user to a Perl program? I want Perl to over write/create a file that users have named for upload in the form and check the file type. I am using Windows if it makes any difference??
 
No it makes no difference.

In order to have the form submit data to a script, you must set the action attribute of the form to point to that script's file.

<form id="" name="" method="POST" action="script_folder/script_name.pl">

<input type="text" name="my-data" value="test />

</form>

This example will send the information from that textbox to a perl script called script_name.pl via POST. Alternatively you can send the data via method GET, depending on how your perl script was made to accept data.
 
Back
Top