| | |
help with finding right code
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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
- Script to do a form submition to e-mail. (PHP)
- Comparing two letters in one string with another char string? (C)
- Reversing a string (C++)
- Finding Perfect Numbers. "help plz" (C++)
- Beware the GUI builder (Java)
- Need help with while loop (C++)
- HijackThis logfile of system (Viruses, Spyware and other Nasties)
- Set up wizard (Windows 95 / 98 / Me)
- Can you add pictures/sounds in a win32 console app? (C)
Other Threads in the PHP Forum
- Previous Thread: Multiple Counters
- Next Thread: Running VERY BASIC PHP script ???
| Thread Tools | Search this Thread |
ajax apache api array basics beginner binary bounce broken cakephp checkbox class cms code codingproblem combobox cron curl database date display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla js limit link login mail menu mlm mobile multiple mysql nodes oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion regex remote return script search server sessions smash sms soap source space sql syntax system table tutorial up-to-date update upload url validation validator variable video web webapplications websitecontactform xml youtube





