I have the native contact form working just fine on my contact page. (well almost. it send the message but the page refreshes. Your live sample send it much more gracefully with AJAX. How can I do this?
Secondly, I tried lifting this same code that is working in the template_contact and placing it between a conditional statement on my page.php page so that the form appears on another page and the error checking works but the form never gets sent as it does not show success message. The only item I changed was one of the form input fields.
<p><input name="website" class="text_input" type="text" id="website" size="20" value="<?php if (isset($the_website)) echo $the_website?>"/><label for="website">Website</label></p>
<p><input name="telephone" class="text_input" type="text" id="telephone" size="20" value='<?php if (isset($the_telephone)) echo $the_telephone?>'/><label for="telephone">Telephone</label></p>
I also changed this code block in send.php
$the_name = $_POST['yourname'];
$the_email = $_POST['email'];
$the_telephone = $_POST['telephone'];
$the_message = $_POST['message'];
$the_subject = $_POST['Subject'];
# want to add aditional fields? just add them to the form in template_contact.php,
# you dont have to edit this file
//added fields that are not set explicit like the ones above are combined and added before the actual message
$already_used = array('yourname','email','telephone','message','subject','ajax','myemail','myblogname','Send');
$attach = '';
The line above "$the_telephone = $_POST['telephone'];" use to be $the_website = $_POST['webiste'];
What could be wrong??