1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can anyone help me with a script please?

Discussion in 'C#' started by dj_gie, Mar 20, 2007.

  1. #1
    I am looking for some advice on a free script or code that can allow visitors to upload files to me from my webpage to my email address.

    <form action="upload.asp" method="post" enctype="multipart/form-data">
    <input type="file" />
    <br />
    <input name="Submit" type="submit" value="submit" />
    </form>


    I have started with the HTML upload form code above, but I am not sure what to put in the action page (upload.asp)

    I am new to ASP so i don't know where to start.

    Could anyone please help me?
    SEMrush
    Kind Regards
     
    dj_gie, Mar 20, 2007 IP
    SEMrush
  2. contactsonia

    contactsonia Active Member

    Messages:
    452
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Do you know which asp upload component is installed on your server? If you donno than do ask about this to your hosting provider and let me know. I will send you sample script which you can use :)
     
    contactsonia, Mar 22, 2007 IP
  3. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    dj_gie, Mar 23, 2007 IP
  4. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have found some information from my hosting support website:

    Active Server Pages (ASP) is a Windows scripting technology developed by Microsoft for Internet Information Server (IIS). It is a powerful tool for:


    Creating dynamic content
    Connecting to ODBC databases
    Dynamically formatting pages
    Executing complex logic statements
    Fasthosts supports ASP on its Windows with ASP servers. The following scripting languages are supported within ASP:

    VBScript (default)
    JavaScript
    PerlScript
    ASP is not supported on Linux servers.


    Does this help???

    Kind Regards
     
    dj_gie, Mar 23, 2007 IP
  5. DaDMan

    DaDMan Guest

    Messages:
    566
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You'll have to upload the file on the server first then use cdont or cdosys ( depending on what your host is supporting ) to email you the file.. This is how I would do it.

    There is a free asp upload you could find here http://www.freeaspupload.net/ pretty well documented.

    So start by implementing this on the page where the user upload the file. Then , once this is working, use either cdont or cdosys and send yourself this file over email. You could find email with asp here : http://www.w3schools.com/asp/asp_send_email.asp

    Or you may simply want to implement the upload part.. depending on what you need to do with the file the user is uploading.. cause in fact once it will be uploaded on your server you could easilly pick it up via ftp..

    Off course all this is at it's pretty basic implementation but would do the job.
     
    DaDMan, Mar 24, 2007 IP
  6. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yes, it doesn't matter too much about how i get it as long as i know when someone has uploaded so i can get the file.

    The type of files i want to receive are microsoft word type documents.

    Kind Regards
     
    dj_gie, Mar 26, 2007 IP
  7. DaDMan

    DaDMan Guest

    Messages:
    566
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ok well in this case, simply install the free asp upload that I've pointed out http://www.freeaspupload.net/ ( documentation is pretty good and it is pretty much self descriptive.. ) you'll be able to set the type of files you want to allow to user to upload etc etc. And once this will be working you'll simply send you a mail out to your address.

    Cheers
     
    DaDMan, Mar 26, 2007 IP
  8. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,607
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #8
    it's a little slower but still solid - a pure ASP upload solution
     
    ccoonen, Mar 28, 2007 IP
  9. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks, for all your advice, but i am still stuggling a bit. I am new to ASP.
     
    dj_gie, Mar 29, 2007 IP
  10. ztoma

    ztoma Peon

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    just a small point here:

    if you are new to ASP do not waste your time learning it. its old and out-dated.

    learn ASP.NET instead. its by far more programmer friendly, and has whole lot of great online tutorials, and even a free version of the microsoft's IDE
     
    ztoma, Mar 30, 2007 IP
  11. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks, i'll look into asp.net then

     
    dj_gie, Apr 2, 2007 IP