登录 | 注册 | FAQ
Anonymous

Form to email with attachment

+ 发表回复

2 篇帖子 分页: 1 / 1


Form to email with attachment

3vilt3ddy23 » 周六 6月 27, 2015 10:44 pm

I have been working on a website for my wife's company but I am not sure how to get my page to email a form with an attachment. I want people to be able to fill out a little information and email their resume. Can someone please tell me what I need to do to get it to wok.

代码: 全选
<body>
<a id="top"></a>
<p><img src="Images/Code Blue Animation.gif" width="800" height="350" alt="Animation" Hspace= "200" Vspace= "0" /></p>
<ul class= "navbar">
<li><a href="index.html">Home</a></li>
<li><a href="resumes.html"> Resumes</a></li>
<li><a href="contactus.html">Contact Us</a></li>
</ul>
<br />
<br />
<hr width="100%" />

<p>Please provide your personal information along with your a copy of your resume.</p>
<form name="resume" action="mailto:cbstaffing14@gmail.com" method="post">
<p> First Name:   <input type="text"
id="FirstName" size="30" /></p>
<p> Last Name:   <input type="text" id="LastName"
size="30"/></p>
<p><input type="radio" name="gender" value="Male"
checked="checked"/>Male
<input type="radio" name="gender" value="Female"/>Female</p>
<p> Phone Number:  <input type="text" id="Phone"
size="15"/></p>
<p>Email: <input type="text" id="Email" size="45"/></p>
<p>Address: <input type="text" id="Address" size="70"></textarea></p>
<p>Additional Comments:  <textarea id="Comments" cols="45" rows="5"></textarea></p>
<p>File to upload: <input type="file" id="upfile">
</p>
<p> Do you have at least one year of Medical/Surgical or Telemetry experience?</p>
<p><input type="checkbox"
id="Yes" value="yes"/> Yes</p>
<p>Nursing Level: <select id="Level" size+"1">
<option>LVN</option>
<option>RN</option>
</select></p>
<button type="submit">Submit</button>

</form>

<p><a href="#top">Back to Top</a></p>
</body>
头像

3vilt3ddy23

  • 帖子: 2
  • 注册: 周六 6月 27, 2015 10:38 pm

Re: Form to email with attachment

emily008 » 周三 10月 07, 2015 7:06 am

You should use enctype="multipart/form-data" attribute for <form> tag if you wan to upload something using a <form>.
In fact the code doesn't seems good.
头像

emily008

  • 帖子: 8
  • 注册: 周三 10月 07, 2015 6:29 am
  • 地址: London
--
For more visit HTML Tutorial


+ 发表回复

分页: 1 / 1