- Joined
- Feb 25, 2004
- Messages
- 4,161
- Reaction score
- 8
aggieuk said:....... just cant find anyone to supply both with simple explainations to upload to my webpage.......
<?php
$youremail="[email protected]";
$file = "filename.php";
if($action=="process"){
mail($youremail,$subject,$message);
echo <<<END
Your message has been sent.
END;
} else {
echo <<<END
<form action="$file?action=process" method="post">
Your Name: <input type="text" name="name">
<br>
Your Email: <input type="text" name="email">
<br>
Your Message:
<br>
<textarea rows="10" cols="30"></textarea>
<br><br>
<input type="submit" value="Send a Message!">
</form>
END;
}
?>
*the exceptional businesses of our esteemed moderators