Jump to content

send order with attachment


auspm

Recommended Posts

G'day Guys & Gals.

 

I've been googling to my hearts content and haven't found anything that either works or is suiteable for my needs. What i'm wanting is the following:

 

When somebody wishes to send me a file, I want a form that has the following:

Name, Phone #, Mobile #, Address, Attachment, Extra info

plus somewhere i'll put in where they can select a product from my database so I know what they are wanting, and when I receive the email, it gives me all the details they've inputted including the file (which will be an image).

 

If it has a security thing with it, its an added bonus to prevent spam from coming through.

 

So firstly, I know some sort of script exists, i've used them in the past, but can't find any, and secondly, is anyone able to provide at the code at all?

 

Any assistance is appreciated.

Link to comment
Share on other sites

I finally found a script on the net that sorta does what i'm wanting it to do.

 

Except 2 problems, firstly I can't seem to send image files. I did put in to $strresume_type=="image/jpg" but still won't work. It will only let me send a .doc file.

The other problem is when the email is received, it doesn't show any of the users details like their address, phone # etc.

 

Any help on this one would be greatly appreciated, as my php experience is very limited. I'm still yet to add a couple of more fields for the users input, but I see that is useless until I can see the info in the email.

 

p.s - i got the original script from http://www.weberdev.com/get_example-4595.html

 

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 


<title>Untitled Document</title> 
</head> 

<body style="padding:3px; margin:0px;" bgcolor="#FFFFFF"> 
<table cellpadding="0" cellspacing="0" border="0" width="440"> 
    
    <tr><td style="height:10px"></td></tr> 
    <tr> 
      <td colspan="2" style="text-align:justify; line-height:15px;" class="body"> 
        
      <form name="frm" method="POST" action="careersuccess.php" enctype="multipart/form-data"> 
      <table cellpadding="0" cellspacing="0" border="0" width="100%"> 
          <tr> 
            <td width="23%" class="body"> Name</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><input type="text" name="strname" class="textfield"></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> Address</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><textarea cols="16" name="straddress"></textarea></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> City</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><input type="text" name="strcity" class="textfield"></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> State</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><input type="text" name="strstate" class="textfield"></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> Contact No</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><input type="text" name="strno" class="textfield"></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> Email</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><input type="text" name="stremail" class="textfield"></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> Comments</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><textarea cols="16" name="strcomments"></textarea></td> 
        </tr> 
        <tr><td style="height:3px"></td></tr> 
        <tr> 
            <td width="23%" class="body"> Resume</td> 
            <td width="3%" class="body">:</td> 
            <td width="74%"><input type="file" name="strresume"></td> 
        </tr> 
        <tr><td style="height:10px"></td></tr> 
        <tr> 
            <td colspan="3" align="center"> 
                <input type="submit" value="Send" name="submit" onClick="return validate();"> <input type="reset" value="Reset" name="reset"> 
            </td> 
        </tr> 
        
      </table>    
     </form> 

</td> 
    </tr> 
    <tr> 
      <td colspan="2" align="center"> </td> 
  </tr> 
    </table> 
</body> 
</html>

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.