944,110 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1242
  • PHP RSS
May 9th, 2006
0

help with finding right code

Expand Post »
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
Similar Threads
Reputation Points: 16
Solved Threads: 0
Light Poster
jasondrey13 is offline Offline
41 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Multiple Counters
Next Thread in PHP Forum Timeline: Running VERY BASIC PHP script ???





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC