Code Comments
Programming Forum and web based access to our favorite programming groups.> 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 > 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> </tr><tr> <td valign="top" align="right">Licence: </td> <td valign="top"><input type="text" name="licence" value="demo"></td> </tr><tr> <td valign="top" align="right">Login: </td> <td valign="top"><input type="text" name="login" value="webmaster"></td> </tr><tr> <td valign="top" align="right">Password: </td> <td valign="top"><input type="text" name="password" value="*"> </td> </tr><tr> <td valign="top" align="right"><br></td> <td valign="top"><input type="submit" name="init" value=" INIT "></td> </tr></tbody> </table> </form> -- Saludos, J. Alejandro Ceballos Z. | -------------------------------+------------------------------ http://alejandro.ceballos.info | buzon@alejandro.ceballos.info | -------------------------------+ |
Post Follow-up to this messageJ. Alejandro Ceballos Z. wrote: > > 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. > > <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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.