Public feed #599773

EoN

public text v1 · immutable
Raw Edit
·published 2007-07-02 13:08 UTC
rendered paste body
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>Contact Us</title>	
</head>
<body>

<?php
if( isset($_POST['submit']) ) {
	mail('YOUR_EMAIL_GOES_HERE@yourbusiness.com', $_POST['subject'], $_POST['body'], "From: ".$_POST['from_name']." <".$_POST['from_email'].">\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: 8bit");
	echo "<p>Thank you, your email has been received.</p>";
} else {
	echo "<p>Use the form to send us an email.</p>";
}
?>
<form name="contact" action="<?php echo _$SERVER['REQUEST_URI'];?>">
	Your Name: <input type="text" name="from_name" />
	Your Email: <input type="text" name="from_email" />
	Subject: <input type="text" name="subject" />
	Body: <textarea name="body"></textarea>
	<input type="submit" name="submit" value="Send Email" />
</form>

</body>
</html>