form mail

Discussion in 'HTML & Website Design' started by SkeeTeR_Mcgee, Jun 30, 2006.

  1. #1
    --------------------------------------------------------------------------------

    Hi guys

    I was wondering if anyone can help me out with form mailing. I have made it as far as getting the forms to go in email from from my website but I am stuck like a pig when it comes to making it send with a file attachment. Here is my code, any feedback is much appreciated.

    <table border="0">
    <tr>
    <td>
    <form action="gdform.asp" method="post" ENCTYPE="multipart/form-data" name="Contact">
    <input type="hidden" name="subject" value="New Message" />
    <input type="hidden" name="redirect" value="thankyou.html" />
    </td>
    </tr>
    <tr>
    <td>Name:</td><td><input type="text" name="Name" /></td>
    </tr>
    <tr>
    <td>Phone:</td><td><input type="text" name="Phone" /></td>
    </tr>
    <tr>
    <td>E-Mail:</td><td><input type="text" name="email" /></td>
    </tr>
    <tr>
    <td>Comments:</td><td><textarea name="comments" cols="45" rows="15">
    Type comments here.</textarea></td>
    </tr>
    <tr>
    <td>Attachment:</td><td><input type="file" name"Ad" size="60"></td>
    </tr>
    <tr><td></td>
    <td><div align="center"><input type="submit" name="submit" value="submit"/></div></td><td></td>
    </form>
    </tr>
    </table>

    PS
    this is on godaddy and i am using the defualt formmailer becuase i am not sure how to upload aspcode to my server.



    **edit**
    if i remove the ENCTYPE="multipart/form-data" from the from string it lets the form fields through but the result is only text in the email. when i keep it in it has a dastardly error "No variables sent to form! Unable to process request."

    Thanks
     
    SkeeTeR_Mcgee, Jun 30, 2006 IP
  2. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #2
    are you earning posts by placing the same thing on several parts of DP?

    Do you have an HTML problem or ASP problem???? Maybe its PHP???

    http://forums.digitalpoint.com/showthread.php?t=102465

    is this a new way of reaching your needs, to post the same thing anywhere that is possible
     
    ludwig, Jun 30, 2006 IP
  3. SkeeTeR_Mcgee

    SkeeTeR_Mcgee Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    not at all, i realised only after i posted that this is probably more a html issue rather than a asp issue...am i wrong? just wanted it in the right place to make sure i can get the help i need
     
    SkeeTeR_Mcgee, Jun 30, 2006 IP