<form Name=LoadFiles onSubmit="getNames();"
enctype="multipart/form-data" method="post" action="<@APPFILE>">
<INPUT TYPE=HIDDEN NAME=TextName VALUE="">
<INPUT TYPE=HIDDEN NAME=LinkDocName VALUE="">
<input type="hidden" name="_afn" value="text">
<p>
Text File:<input type="file" accept="text/*" name="text">
</p>
<p align="center"><font color="#990099"><b> or </b></font></p>
<p>
Other File:<input type="file" accept="*" name="linkDoc">
</p>
<input type="submit" name="Submit" value="Submit"> <input type="reset"
value="Reset">
</form>
<SCRIPT language="JavaScript">
<!--
function getNames()
{
document.LoadFiles.TextName.value = document.LoadFiles.text.value;
document.LoadFiles.LinkDocName.value = document.LoadFiles.linkDoc.value;
return true;
}
-->
</SCRIPT>
Now when you submit the names will be placed in the hidden tags for you
to reference.
Ben Johansen - http://www.pcforge.com
Authorized Witango Reseller http://www.pcforge.com/WitangoGoodies.htm
Latest downloads & List Archives @ http://www.witango.ws
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Beverly Voth
Sent: Friday, September 27, 2002 10:30 AM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: 2nd request: file upload, capture name ? ASAP!
=== Begin Fwd ===
To: Multiple recipients of list witango-talk <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 26 Sep 2002 16:55:23 -0400
From: Beverly Voth <[EMAIL PROTECTED]>
Subject: Witango-Talk: file upload, capture name ?
When I'm using...
=== snippet ===
<form enctype="multipart/form-data" method="post" action="<@APPFILE>">
<input type="hidden" name="_afn" value="text">
<p>
Text File:<input type="file" accept="text/*" name="text">
</p>
<p align="center"><font color="#990099"><b> or </b></font></p>
<p>
Other File:<input type="file" accept="*" name="linkDoc">
</p>
<input type="submit" name="Submit" value="Submit"> <input type="reset"
value="Reset">
</form>
=== end ===
...to upload a text file, all is well.
When I upload another type of file ("Other File:"), how to I make sure
the name of the file is used in the WRITE action:
<@WEBROOT>downloads/????
Thanks,
Beverly
=== End Fwd ===
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
with unsubscribe witango-talk in the message body