| | |
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 |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code codingproblem cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select send server sessions sms snippet soap source space speed sql static structure syntax system table tutorial up-to-date update upload url validation validator variable video web wordpress xml youtube





