Results 1 to 4 of 4

Thread: Like VB-Worlds....add attachment!!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343
    Just to get me back to the top......
    Is this not an easy one!!??

    T

  2. #2
    New Member
    Join Date
    Jul 2001
    Posts
    4

    Re: Like VB-Worlds....add attachment!!

    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();" />

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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.
    Code:
    EncType="multipart/form-data"
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    MLaise
    Guest

    Or you can use the easy HTML way

    <input type="file" name="whatever">

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width