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.

File attach to email script

Discussion in 'PHP' started by xeno, Aug 11, 2005.

  1. #1
    can anyone tell me how to get the "Browse for file" window to appear so that the user chooses a file from their computer to attach to an email. I think it might involve javascript bu I am not sure. Thanks
    SEMrush
     
    xeno, Aug 11, 2005 IP
    SEMrush
  2. rvarcher

    rvarcher Peon

    Messages:
    69
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    enctype="multipart/form-data" has to be in your <form> tag like:
    
    <form name="new_form" enctype="multipart/form-data" action="$_SERVER[PHP_SELF]" method="post">
    
    Code (markup):
    and the input tag is like:
    
    File: <input type="file" name="file_1">
    
    Code (markup):
     
    rvarcher, Aug 11, 2005 IP
  3. Connect

    Connect Guest

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Connect, Aug 12, 2005 IP
  4. ajayr

    ajayr Active Member

    Messages:
    322
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    ajayr, Aug 13, 2005 IP