Quote:
Originally Posted by virtualweb
Not able to pass variables data:
Hello .. Im building a form that uploads files with encType="multipart/form-data" but on the same form I need to pass other variables with hidden fields.
The files are uploading fine but Im not getting the values of the hidden fields,
How can I get hidden field values along with uploaded files in the same form..??
This is my form code:
- <form action="upload_file.pl" encType="multipart/form-data" method="Post">
-
<input type=file name="FILE">
-
<input type="hidden" name="URL" value="$URL">
-
<input type="hidden" name="Alias" value="$Alias">
-
<INPUT type=submit value="Upload File">
-
</form>
Im attaching the perl script that handles the upload under the name of Upload_Perl_Script.txt
Thanx beforehand
Virtual Web I see your above form code and I have a question. Is that code being sent to the browser by a Perl script, or is it just an HTML file? If it is a Perl script, can we see it as well?
If they are not set, then I assume there is an issue with your variables being set as shown above and you should look into that first to ensure they are being set.
Regards,
Jeff