csvaasan Posted June 3, 2011 Share Posted June 3, 2011 Hi, I am new to Coding; but now developing a website where I need to accomplish, - Form Submission should be delivered to Email ID along with Uploaded file as Attachment; also the Email should carry the VALUE of a Field (Job Ref.) as the subject. - ONLY MS Word files (.doc, .docx, rtf) should only be allowed to select to Upload. FORM CODE GIVEN BELOW; FORM DON'T HAVE ANY OTHER FIELD OTHER THAN THE FILE UPLOAD. Can someone please help.... <form action="" name="myform" id="myform"> <table width="100%" cellspacing="0" cellpadding="0" border="0" class="bgwhite"> <tr> <td height="25" colspan="4" background="images/bg_tabletitle.gif" class="textwhite" style="padding-left:8px;">Apply for this Vacancy</td> </tr> <tr> <td class="texttable" style="padding-left:8px;" valign="top"> <strong>Job Ref.</strong> </td> <td class="tabledivider"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td> <td class="texttable" valign="top"> EE-QATAR-GHD-020611 </td> </tr> <tr> <td colspan="3" height="2" class="bgborder"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td width="125" height="25" class="texttable" style="padding-left:8px;"><strong>Submit Resume</strong></td> <td width="21" class="tabledivider"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td> <td class="texttable"><input name="upload" type="file" size="25" maxlength="200" class="fileattach"/></td> </tr> <tr> <td colspan="3" height="1" class="bgbordere"></td> <tr> <td width="125" height="25" class="texttable" style="padding-left:8px;"></td> <td width="21" class="tabledividere"></td> <td class="textblue1"><input name="submit" type="submit" value="Apply" /> <input name="Clear" type="reset" value="Clear"/></td> </tr> <tr> <td colspan="3" height="2" class="bgborder"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td> </tr> </table> </form> [/font][/size] [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/238309-form-to-email-with-attachment/ Share on other sites More sharing options...
gizmola Posted June 4, 2011 Share Posted June 4, 2011 Help with what? All you have is a form. Where is your php code? Did you read this? http://us3.php.net/manual/en/features.file-upload.php Quote Link to comment https://forums.phpfreaks.com/topic/238309-form-to-email-with-attachment/#findComment-1225009 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.