Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow HTML code for form

    I'm trying to create a simple HTML form that will allow a user to submit a picture through the form. I don't want the form to be uploaded to my server, but just sent as an attachment through the email the form creates. Since I'm using a free hosting service, I cannot use my own CGI/Perl Codes. Is it possible to make this for work? Here is what I have so far:
    <FORM ACTION="/bin/script_library/form_handler_mail" METHOD=post enctype="multipart/form-data" >
    What's your name?
    <INPUT TYPE="text" NAME="name"><BR>
    What's yout email address?
    <INPUT TYPE="text" NAME="email">
    <BR>
    Send my picture:<br />
    <input name="userfile[]" type="file" /><br />
    <input type="submit" value="Send files" />
    </form>
    This is what I get back:
    The following data was submitted via your form:

    email: dfdfd
    name: asas
    userfile[]: C:\Documents and Settings\Owner\Desktop\favicon.ico

    I can see the path and filename, but nothing is attached. I definitely appreciate any help I can get.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Just because you use the file input doesn't mean it gets attached. You will actually NEED a script that can accept attachments. You might be able to find one on www.hotscripts.com

  • #3
    New to the CF scene
    Join Date
    Nov 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Confused

    I took a look at the CGI/Perl Form Processor scripts on hotscripts.com and think I'm worse now then before I started. I'm very new at scripts. Simple HTML form and I'm golden, but this is new. I just need to know what it will take to make this form work. Sever side isn't something I've had to deal with since I've only dealt with free webhosting. If anyone can point me in the right direction, I sure would appreciate it.

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,090
    Thanks
    2
    Thanked 23 Times in 23 Posts
    You might want to read this article. The script that is discussed in it can be downloaded. Works great!
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

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