I can't find a way to let people attach a file to messages auto sent to my e-mail.
my code is :
<html>
<head>
<title>email</title>
</head>
<body bgcolor="red"><center>
<br>
<table border="2">
<?<form>
//1
<tr>
<td bgcolor="yellow" text="black"><b>print "!all fields must be filled!";<b></td>
</tr>
//2
<tr>
</tr>
//3
<tr>
<td>print "first name: "; <input type="text" name="$fname"><br></td>
</tr>
//4
<tr>
<td>print "last name: "; <input type="text" name="$lname"><br></td>
</tr>
//5
<tr>
<td> print " age: "; <input type="text" name="$age"><br></td>
</tr>
//6
<tr>
<td> print "question (be specific): ";<br><textarea name="$need" rows="9" cols="30"></textarea><br></td>
</tr>
//7
<tr>
<td>e-mail (this must be valid): <input type="text" name="$email"><br></td>
</tr>
//8
<tr>
<td><input type="radio" name="$comtype" value="windows"> windows <input type="radio" name="$comtype" value="mac"> mac<br></td>
</tr>
</table>
<a herf=index.html> -<input type="submit" name=oporsubmit>- </a>
</form></table>
if(strlen($fname) >2 && strlen($comtype) >2 && strlen($lname) >2 && strlen($age) >10 && strlen($age) <21 && strlen($need) >20 && strlen($email) >10 && )
{
$body2="a new request has been made by $fname $lname /n who is age $age and has a $comtype/n/n------------------------------------question------------------------------/n/n $need /n/n --------------------------------------------------------/n/n contact this person at $email /n/n";
mail("my@e-mail.com","new question",$body2)
}
else
{
print "there is an error";
}
?>
</center>
</body>
</html>
i need to make a place where they can browse their computer for a file and attach it
thnx