I have the following form to allow a user to send me an email. It’s continuous in the code for the page, but I separated it here so that it colors nicely. Is there a way to allow someone to attach a file with a maximum size of 6MB? If yes, what is the code for that?
Also, do you think it is a good idea to allow people to send files through a form like this? Thanks for the input.
[code=php]<?php
if (isset($_POST[‘submit’])) {
mail(“[email protected]”,”form contact”,”NAME: “.$_POST[‘fname’].” EMAIL: “.$_POST[’email’].” MESSAGE: “.$_POST[‘message’]);
echo “Thank you for contacting Wiz Creations.n”;
} else {
?>[code=html]
<form action=”contact.php” method=”post”>
<table align=”center” width=”300″ cellspacing=”5″ border=”0″>
<tr><td align=”center”>Your Name:<br><input name=”fname” type=”text” value=”” size=35></td></tr>
<tr><td align=”center”>Your Email Address:<br><input name=”email” type=”text” value=”” size=35></td></tr>
<tr><td align=”center”>Your Message:<br><textarea wrap=”hard” name=”message” rows=8 cols=35></textarea></td></tr>
<tr><td height=”26″ align=center><input type=”submit” name=”submit” value=”Submit”> <input type=”reset” value=”Reset”></td></tr>
</table>
</form>
<?php } ?>
Is that last [COLOR=Blue]<?php } ?>