J. Alejandro Ceballos Z. wrote:
I am sending a text file with SQL statements via Form to a CGI.

Are you trying to upload a file, or are you just sending the file contents as an ordinary parameter?

Just the file contents as a parameter

Well, the form you just posted includes a file select control, which tells me that it's actually a file upload you are trying to accomplish.


Please see in the CGI docs how you can grab the contents of an uploaded file. I recommend that you make use of the upload method.

Please show us the form.

<form action="/cgi-bin/i-nstaller.cgi" method="POST" target="_blank"> <table cellpadding="2" cellspacing="2" border="0" width="400" align="center"><tbody><tr> <td align="right">Create services SQL file: </td> <td valign="top"><input type="file" name="file"></td>

You should add

    enctype="multipart/form-data"

to the <form> tag.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to