I am trying to pass a piece of information contained on a web page to my cgi script. The information is stored in a form on the page. I know that the following can be used to do this:
use CGI;
$query = new CGI;
$name = $query->param('name');
but when I put this in the script it does not work properly for some reason, I get a "short read". The script I am adding this to is cgi-lib.pl Version2.18. I took it from the web I am uploading files and the parameter I want to pass in is to be the file name.
Would anyone know an alternative to the above 3 lines?
Any and all help would be appreciated!!
use CGI;
$query = new CGI;
$name = $query->param('name');
but when I put this in the script it does not work properly for some reason, I get a "short read". The script I am adding this to is cgi-lib.pl Version2.18. I took it from the web I am uploading files and the parameter I want to pass in is to be the file name.
Would anyone know an alternative to the above 3 lines?
Any and all help would be appreciated!!