<form action="http://XXX/XXX/XXX/add-hosttest.pl -s server -u username -p password -v view -n name -a ip address" method="post">
This looks very wrong. CGIs aren't invoked that way. Parameters passed to the webserver inside the URL (the part after the first ?) are passed to the CGI via environment variables, Parameters passed to the webserver in POST requests are passed to the CGI via STDIN. CGIs do not take command line parameters.
Read http://en.wikipedia.org/wiki/Common_Gateway_Interface, then consider using CGI or a similar module. Don't try do invent your own CGI protocol handler, you will likely create an incomplete and insecure version.
Alexander
In reply to Re: running a Perl script with options via HTML
by afoken
in thread running a Perl script with options via HTML
by tronmason
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |