Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameters to File upload script

Status
Not open for further replies.

sucram

Programmer
May 23, 2001
75
GB
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!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top