auspm Posted December 19, 2009 Share Posted December 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
vinpkl Posted December 19, 2009 Share Posted December 19, 2009 try this http://www.phpmagicbook.com/upload-file-attach-send-html-format-email/ vineet Quote Link to comment Share on other sites More sharing options...
auspm Posted December 19, 2009 Author Share Posted December 19, 2009 try this http://www.phpmagicbook.com/upload-file-attach-send-html-format-email/ vineet G'day, I tried it, didn't come up with any error messages, but also didn't show any 'sent' or not sent messages. I made a 'temp' directory and 777'd the directory. So not sure what is going wrong at this stage. Quote Link to comment Share on other sites More sharing options...
auspm Posted December 20, 2009 Author Share Posted December 20, 2009 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] Quote Link to comment Share on other sites More sharing options...
auspm Posted December 21, 2009 Author Share Posted December 21, 2009 Ended up finding another script on the net and modified the fields and seems to work perfectly (all bar a css issue that i've posted in the CSS help section). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.