Hello again. This is Greg and I am the guy who started this big long thread so long ago 
The original PHP version of the form that @Pullo ; created for me has been working great and has minimized my junk email volume!
But I am switching my web hosting. This means part of the PHP file will need changed and I need a little more help. The current code (PHP and HTML) is pasted in below so you don't have to dig back through all the old pages of this thread. You can see the actual contact page by going to: http://www.bestdryingrack.com/
It now needs to send the form contents to a different place since I will not be using Yahoo webhosting anymore. Maybe you bright folks could tell me how to do it in two ways? (so that at least one works for sure when I make the hosting switch) They are:
1) straight to my email at contact@mysite.com
2) to me through my new webhosting service, which is greengeeks.com and their site says that "path to send mail" is /usr/sbin/sendmail
My guess is that #1 is easier, but that #2 will be better at hiding my email address from the bots.
My guess is that just the PHP line that starts with $url will need to change, but I'm just guessing as I don't speak PHP 
I appreciate any assistance you can provide. Thank you! 
Greg
pullo-bdr.php
PHP Code:
<?php
$checker = $_POST['checker'];
if ($checker != 12){
header('Location: [url]http://bestdryingrack.com/contact-error.html');[/url]
exit();
}
$url = "http://us.1.p2.webhosting.yahoo.com/forms?login=xxxxxx";
$post_data = array (
"person" => $_POST['person'],
"onlineaddress" => $_POST['onlineaddress'],
"ringer" => $_POST['ringer'],
"country" => $_POST['country'],
"reporting" => $_POST['reporting']
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_exec($ch);
curl_close($ch);
//It's all good brother. POST data submitted, let's redirect!
header('Location: [url]http://bestdryingrack.com/Confirmation.html');[/url]
?>
HTML Code:
<!-- Contact Form -->
<form id="edf" method="post" autocomplete="off" action="pullo-bdr.php" >
<fieldset>
<div class="form-actions" >
<legend> Contact Form </legend>
<label for="reporting">Message</label>
<textarea class="input-block-level" rows="3" name="reporting" id="reporting" maxlength="1000">
</textarea>
<span class="help-block">
If you would like us to reply to your message, please provide a good email or phone number.
</span>
<label for="person">Name</label>
<input class="input-block-level" type="text"
name="person" id="person" onkeypress="return event.keyCode != 13;">
<label for="onlineaddress">Email</label>
<input class="input-block-level" type="text"
name="onlineaddress" id="onlineaddress" onkeypress="return event.keyCode != 13;">
<label for="ringer">Phone Number</label>
<input class="input-block-level" type="text"
name="ringer" id="ringer" onkeypress="return event.keyCode != 13;">
<label for="country">Country <small class="muted"> If not USA, we can only email or text you.</small>
</label>
<input class="input-block-level" type="text"
name="country" id="country" onkeypress="return event.keyCode != 13;">
<div style=text-align:center;>
<label for="checker">
<strong>To prevent automated emails, you must answer this question:</strong><br />
What is 6 + 6 ?
</label>
<input class="input-mini" type="text" name="checker" id="checker" >
<p> </p>
<button class="btn btn-large btn-primary" type="submit"> Send Message </button>
<p> </p>
</div>
</div>
</fieldset>
</form>
Bookmarks