Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: One line file as an array (Form included)
 

> 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 |
-------------------------------+
|


Report this thread to moderator Post Follow-up to this message
Old Post
J. Alejandro Ceballos Z.
11-26-04 08:55 PM


Re: One line file as an array (Form included)
J. 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

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
11-26-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:02 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.