On 30 November 2001 Friday 12:20 am, fliptop wrote: > Pedro A Reche Gallardo wrote: > > Hi all, I am beginner with cgi scripting and I am trying to make a cgi > > script that can upload a file, and work with it, or alternatively if > > there no file to upload is specified, use the input pasted in the form > > "text area". I now how to do the second one, but I am unable to deal > > with both inputs at the same time. I am using the form tag > > "multipart/form-data " and <input type=file>, but as I said I do not how > > to tell to program to use one input or the other. > > If someone could send me an example script dealing with this issue it > > will be great. > > your best bet is to read the docs for CGI.pm. you can do that by > typing: > > perldoc CGI > > there is a section that deals with using upload() instead of param() to > deal with file uploads.
or visit http://stein.cshl.org/WWW/software/CGI/cgi_docs.html it's a good tutorial. Djoko System Programmer www.dnet.net.id -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]