Post file from ASP script with some data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomazaz
    New Member
    • Jan 2007
    • 2

    Post file from ASP script with some data

    Hi,
    Maybe somebody know how to post file from ASP script(Sender) to another ASP script(Receiver ). The main problem that I need to post not only file but also e-mail address in one post instance. I already have Receiver asp code but can't find how to send file with data in Sender asp.

    Regards,
    Tomas
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    Well first you need to create an html FORM -
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    You need to use a file field in your form -
    <FONT face="Courier New">[HTML]<input type="file" name="somename" size="chars"> [/HTML]

    In your form you need to ask for email address -
    [HTML]<input type="text" name="email" value="Insert your email address">[/HTML]

    On your receiving page you need -
    DIM email
    email = Request("email" )

    Last need a script to accept files for example -

    Comment

    • tomazaz
      New Member
      • Jan 2007
      • 2

      #3
      I know how to post data from html form to script.

      In my situation I need to post data FROM ASP SCRIPT to another SCRIPT.

      Comment

      • iam_clint
        Recognized Expert Top Contributor
        • Jul 2006
        • 1207

        #4
        I see... but why would you need to pass from one script to another

        lets look at what your really trying accomplish and i can help you from there....


        please elaborate on what your really trying todo

        Comment

        Working...