Location: PHPKode > scripts > Free PHP Form 2 Email Processor > free-php-form-2-email-processor/form-example.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Form Example</title>
</head>

<body>

<h2>Form Example</h2>

<p><span style="color:red">* Make sure to change the hidden <b>to</b> field to your email address before submitting.</span>

<form method="post" action="form2email.php">
<input type="hidden" name="to" value="hide@address.com">
<input type="hidden" name="subject" value="Website Feedback">
<input type="hidden" name="redirect" value="http://www.yourdomain.com/thanks.html">
<input type="hidden" name="name_reqd">
<input type="hidden" name="email_reqd">
<input type="hidden" name="message_reqd">
<p>Name: <input type="text" name="name">
<p>Email: <input type="text" name="email">
<p><textarea cols="50" rows="5" name="message"></textarea>

<p>

<script>
// reCAPTCHA code (optional)
var RecaptchaOptions = {
   theme : 'clean',
   tabindex : 4
};
</script>

<?

// If you want to use reCAPTCHA to prevent spam your form page will need 
// a .php extension and include the code below where you want your reCAPTCHA
// form. Copy and paste your reCAPTCHA pulib key into the variable below.
// e.g. $publickey = "Ff4tlkj0949JKgg5wtGWEBss6pgjUnt6nsdkEI";

include("recaptchalib.php");
$publickey = "";
echo recaptcha_get_html($publickey);
?>

<p><input type="submit" value="Send Feedback">
</form>

</body>
</html>
Return current item: Free PHP Form 2 Email Processor