Log in

View Full Version : How do you make a Attatchment Form?



Moh
04-01-2007, 10:13 PM
Iv had a few complaints about people not been able to send emails, so im in need of a Job Application Form. Im ok with the rest of the forum, like Name, Age etc..., but how do I make a file attatchment so it saves the files to a directory or sumin?

+Rep :)

Lµke
05-01-2007, 02:58 PM
Iv had a few complaints about people not been able to send emails, so im in need of a Job Application Form. Im ok with the rest of the forum, like Name, Age etc..., but how do I make a file attatchment so it saves the files to a directory or sumin?

+Rep :)

Im no coding expert but, why don't u just create a upload form and when they click 'send' or 'submit' it sends the application and uploads the image or whatever you want uploading?

Moh
05-01-2007, 04:30 PM
Im no coding expert but, why don't u just create a upload form and when they click 'send' or 'submit' it sends the application and uploads the image or whatever you want uploading?
Didnt work :(

RNelson!
05-01-2007, 04:40 PM
Just use dreamweaver theirs 1 in their


Didnt work :(

jarhead!
05-01-2007, 05:23 PM
PM me,I am currently making one for you, OK be about 5 mins


OK, now look:
Note: nothink has been tested

Main form>


<form action="send_comment.php" method=POST>
<table>
<tr>
<td> Your Name<td/>
<td><input type="text" name="name" size="30"></td>
</tr>
<tr>
<td Your email </td>
<td><input type="text"name="email" size="30"></td>
</td>
<tr>
<td>What job you want</td>
<td>
<select name="App forrm">
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
<option value="edit here">Edit what job here</option>
</select>
</td>
</tr>
<tr>
<td> Any other info you would like to add.</td>
<td><textarea rows=4 cols=50
name="comments" enter your comments here
</textarea></td>

</tr>
</table>
<input type="submit" value="send comments">
</form>


Save this as send_comment.php.


<?php
$body ="these comemnts where sent to us";
foreach($_post as $field => $value) {
$body .=sprintf("&#37;s =%s/n" , $field, $value");

}

main("[email protected]", "comments where sent to us", $body
'From: "Apps" <[email protected]>');

?>
<h1>Thank you</h1>

Want to hide these adverts? Register an account for free!