I have a registration form, where i wants users to upload their resumes.But i m not able to get that data files into mail, am getting only file name.
i m using eform for all my form.
Pls help.
Guys the problem is solved now : i added enctype="multipart/form-data" to form tag. and IT WORKS
Hi hemchandra,
Can you share your snippet code? I have the same need: to allow users to upload their résumés as PDF or Word.
MySQL: 5.0.45
PHP: 5.2.6
Linux 2.6.9-023stab048.6-enterprise #1
cURL enabled
PDO enabled
FFox Apple 3.6.8
Firebug DIS-abled
-
☆ A M B ☆
- 86 Posts
Quote from: Peter at Nov 15, 2010, 10:54 AM
Hi hemchandra,
Can you share your snippet code? I have the same need: to allow users to upload their résumés as PDF or Word.
Hi Peter,
Here is a sample of an eform chunk that I use to receive resumes. Hopefully this will help you.
[+validationmessage+]
<form id="feedBackForm" name="feedBackForm" method="post" action="[~[*id*]~]" enctype="multipart/form-data">
<table>
<tr>
<td><p><label accesskey="n" for="name">Name</label></p></td>
<td><input type="text" name="name" size="35" maxlength="60" eform="Your Name::1:Expected at least two words:#REGEX /^\w+\s\w+/i" /></td>
</tr>
<tr>
<td><p><label accesskey="p" for="phone">Phone</label></p></td>
<td><input type="text" name="phone" size="35" maxlength="40" eform="Your Phone Number:phone:1" /></td>
</tr>
<tr>
<td><p><label accesskey="e" for="email">Email</label></p></td>
<td><input type="text" name="email" size="35" maxlength="40" eform="Your Email Address:email:1" /></td>
</tr>
<tr>
<td><p><label accesskey="a" for="attachment">Resume (PDF or Word Doc only)</label> </p></td>
<td><input class="field" type="file" name="attachment" eform="Attachment:file:0:Upload Images Only:#LIST pdf,doc " /></td>
</tr>
<tr>
<td> </td>
<td>
<p>
Please enter the anti spam code below:<br />
<img src="[+verimageurl+]" alt="verification code" border="1"/>
</p>
<p>
<label accesskey="c" for="vericode">code</label>
<input type="text" name="vericode" size="20" />
</p>
<p><input type="submit" name="submit" value="Submit"></p>
</td>
</tr>
</table>
</form>