last_Name; $customer_initial = $row->middle_Initial; $customer_firstname = $row->first_Name; $customer_address = $row->address; $customer_state = $row->state; $customer_city = $row->city; $customer_zip = $row->zip; $customer_phone = $row->tel_No; $customer_fax = $row->fax_No; $customer_email = $row->email; $customer_card_type = $row->card_Type; $customer_card_no = $row->card_Number; $expdt = explode("-",$row->expiry_Date); $year = $expdt[0]; $month = $expdt[1]; $customer_card_name = $row->card_Name; $customer_card_code = $row->card_Code; } else { $orderno = ""; $customer_lastname = ""; $customer_initial = ""; $customer_firstname = ""; $customer_address = ""; $customer_state = ""; $customer_city = ""; $customer_zip = ""; $customer_phone = ""; $customer_fax = ""; $customer_email = ""; $customer_card_type = ""; $customer_card_no = ""; $year = ""; $month = ""; $customer_card_name = ""; $customer_card_code = ""; } include "head.inc"; if(!isset($_POST["Submit"])) { $usstates = array("AL","AK","AS","AZ","AR","CA","CO","CT","DE","DC","FM","FL","GA","GU","HI","ID","IL","IN","IA","KS","KY","LA","ME","MH","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","MP","OH","OK","OR","PW","PA","PR","RI","SC","SD","TN","TX","UT","VT","VI","VA","WA","WV","WI","WY"); ?>
::. ORDER FORM
( * Required Fields )
Order Number :
*
Last Name :
*
Middle Initial :
First Name :
*
Address 1 :
*
City :
*
State :
*
Zip :
*
Tel. No. :
*
Fax No :
Email Id :
*
Credit Card Type :
*
Credit Card No. :
*
Expiration Date :
/ {mm/yyyy} *
Credit Card Name :
*
Card Code :
*
0) { print_msg("Another entry found for the Order No. : ".$orderno.". Please recheck !!","cust_order.php"); } else { print "here"; if($result) { $sql2 = "insert into order_details values('$orderno','$customer_code','".date('Y-m-d')."','Transaction Pending','".date('Y-m-d')."','New Transaction')"; $result2 = mysql_query($sql2); if($result2) { $message = " Untitled Document
ORDER FORM { Order no:$customer_orderno / Customer code : $customer_code }
Order Number :
$customer_orderno
Last Name :
$customer_lastname
Middle Initial :
$customer_initial
First Name :
$customer_firstname
Address 1 :
$customer_address
City :
$customer_city
State :
$customer_state
Zip :
$customer_zip
Tel. No. :
$customer_phone
Fax No :
$customer_fax
Email Id :
$customer_email
Credit Card Type :
$customer_card_type
Credit Card No. :
$customer_card_no
Expiration Date :
$month / $year
Credit Card Name :
$customer_card_name
Card Code :
$customer_card_code

"; $to = "aj@condonsautoparts.com"; $header = "From : $customer_code<$customer_email>\n"; $header.= "Content-Type: text/html; charset=iso-8859-1\n"; @mail($to,"Order For { Order No.".$customer_orderno." }",$message,$header); print_msg("Transaction process started successfully !!"); } else { print_msg("Process incomplete !!...".mysql_error()); } } else { print_msg("Process failed !!...".mysql_error()); } } } mysql_close(); include "foot.inc"; ?>