Click to See Complete Forum and Search --> : Like VB-Worlds....add attachment!!
turfbult
Feb 5th, 2001, 02:19 AM
Just to get me back to the top......
Is this not an easy one!!??
T
mporter
Nov 20th, 2001, 05:45 AM
Don't know how the following works I got it from WebDeveloper.com I think:
This in the header
<script language="JavaScript">
function checkattachment() {
var clientBrowser = navigator.userAgent;
if ( clientBrowser.indexOf("MSIE") != -1 ) {
window.event.returnValue=false;
}
}
</script>
and this in the body
<input type="file" size="41" name="attachment" value="none" id="attachment" ALT="Attachments not avaliable with this browser version!" onkeypress="if('function'==typeof(checkattachment))checkattachment();" />
Sastraxi
Nov 20th, 2001, 07:32 AM
Basically you use an upload component like SA-FileUp from Software Artisans and a File input field, and pass it like a normal query. For SA-FileUp, if you have different fields than files (eg. a textbox & filebox) then you must set the Encoding value.
EncType="multipart/form-data"
MLaise
Nov 21st, 2001, 02:24 PM
<input type="file" name="whatever">
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.