New Zenner
- Join Date:
- Oct 2010
- Posts:
- 6
- Plugin Contributions:
- 0
Trying to make a custom order form
I Have searched everywhere, I cannot find the answer. my website is http://www.phoenixleatherworks.com. I am attempting to make a custom order form. I have followed the directions I have found online and in the FAQ, wiki, and forums. I am posting the code i got from a custom PHP builder form. Here are 2 different portions and I am unable to send mail when someone clicks submit. I can get the form to show up and data entered, but it will not send the form. Please Help!!!!
<?php
error_reporting(E_PARSE);
define("ADMIN_MAIL", "*******");
define("HOST_NAME", $_SERVER['HTTP_HOST']);
define("PHP_SELF", $_SERVER['PHP_SELF']);
define("ERR_MISSING", "Missing required field : ");
define("ERR_EMAIL", "Please enter a valid e-mail address : ");
define("ERR_CREDIT_CARD_NUMBER", "Please check the credit card number : ");
define("ERR_CREDIT_CARD_EXPIRED", "Please check the credit card expiry date : ");
define("ERR_SELECT_UPLOAD", "Please select file : ");// recipient
define('FORM_RECIPIENT', '[email protected]');
// --- Array of Form Elements ---
$form_mail[] = array( "name" => "First_name", "text" => "Please Enter your First name", "type" => "text", "required" => "Required" ) ;
$form_mail[] = array( "name" => "Last_Name", "text" => "Please enter you Last Name", "type" => "text", "required" => "Required" ) ;
$form_mail[] = array( "name" => "E-mail_address", "text" => "Please enter your E-mail address", "type" => "email", "required" => "Required" ) ;
** SNIP **
<?php
if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;;
else: //!$isHideForm
print( "<br><br><hr><center><b>Your form has been sent. Thank you.</b><br><br><input type='button' value='Home' onclick=\"location.href='/';\"></center><br><br>" );
endif; //!$isHideForm
?>
</body>
</html>
i apologize for "sounding" so stupid, but I am a leather crafter. not a web developer, but if anyone can please help figure out what is causing problems, and give me simple yet detailed instructions on what to do, I would really appreciate it.
Thank you in advance.