|
function show_form($referredby="",$login="",$requestedpassword="",$fname="",$minitial="",$lname="",$company="",$address="",$city="",$state="",$zipcode="",$homearea="",$homeprefix="",$homesuffix="",$workarea="",$workprefix="",$worksuffix="",$faxarea="",$faxprefix="",$faxsuffix="",$domain_name="",$domain="",$admin="",$billing="",$domaintime="",$sendconnectinfoby="",$service="",$cardname="",$cardnumber="",$returnbyemail="",$expire="",$errors="",$error=""){
if ($errors == 1) {
if ($requestedpassword=="") {
$error .= " Please enter a password "; } if ($fname=="") { $error .= " Please enter your first name "; } if ($lname=="") { $error .= " Please enter your last name "; } if ($address=="") { $error .= " Please enter your address "; } if ($city=="") { $error .= " Please enter your city "; } if ($state=="") { $error .= " Please enter your state "; } if ($zipcode=="") { $error .= " Please enter your zip code "; } if ($domain_name=="") { $error .= " Please enter your domain name "; } if ($domain=="") { $error .= " Please Select if this is a new domain or a transfer "; } if ($sendconnectinfoby=="") { $error .= " Please tell us how you would like your connect info "; } if ($service=="") { $error .= " Please select a service type "; } if ($cardname=="") { $error .= " Please enter the name on your credit card "; } if ($cardnumber=="") { $error .= " Please enter your credit card number "; } if ($expire=="") { $error .= " Please enter your credit card expiration date "; } } ?> BizLite Order FormThis interactive order form will allow you to enter all necessary information to generate a form that will be E-mailed to Msen.New service is typically setup within two business day after receipt of order form and payment, subject to the domain registration requirement. Please remember that there is a $50 set up fee on all new acounts. The fees to Network Solutions will be charged to the customer credit card seperately. echo $error?> } if(!isset($login)) { show_form(); $error=""; } elseif(empty($login) || empty($requestedpassword) || empty($fname) || empty($lname) || empty($address) || empty($city) || empty($state) || empty($zipcode) || empty($domain_name) || empty($domain) || empty($sendconnectinfoby) || empty($service) || empty($cardname) || empty($cardnumber) || empty($expire) || ($sendconnectinfoby=="fax" && empty($faxsuffix)) || (empty($worksuffix) && empty($homesuffix)) || ($domain=="new" && (empty($admin) || empty($billing))) || ($sendconnectinfoby=="email" && empty($returnbyemail))) { if($sendconnectinfoby=="fax" && empty($faxsuffix)) { $error.=" If you would like your connect info via Fax Please fill in a fax number\n"; } if(empty($worksuffix) && empty($homesuffix)) { $error.=" Please enter a phone number\n "; } if($domain=="new" && (empty($admin) || empty($billing))) { $error.=" For a New Domain you must enter the billing and admin contact names\n "; } if($sendconnectinfoby=="email" && empty($returnbyemail)) { $error.=" To have your connect info sent via e-mail please enter an e-mail address\n "; } show_form($referredby,$login,$requestedpassword,$fname,$minitial,$lname,$company,$address,$city,$state,$zipcode,$homearea,$homeprefix,$homesuffix,$workarea,$workprefix,$worksuffix,$faxarea,$faxprefix,$faxsuffix,$domain_name,$domain,$admin,$billing,$domaintime,$sendconnectinfoby,$service,$cardname,$cardnumber,$returnbyemail,$expire,$errors="1",$error); } elseif (checkdup($login)) { $error.=" The login you have picked is already taken, please try another\n "; show_form($referredby,$login,$requestedpassword,$fname,$minitial,$lname,$company,$address,$city,$state,$zipcode,$homearea,$homeprefix,$homesuffix,$workarea,$workprefix,$worksuffix,$faxarea,$faxprefix,$faxsuffix,$domain_name,$domain,$admin,$billing,$domaintime,$sendconnectinfoby,$service,$cardname,$cardnumber,$returnbyemail,$expire,$errors="1",$error); } else { $strBody = "Msen BizLite order\n"; $strBody .= "referredby $referredby\n"; $strBody .= "login $login\n"; $strBody .= "requestedpassword $requestedpassword\n"; $strBody .= "fname $fname\n"; $strBody .= "minitial $minitial\n"; $strBody .= "lname $lname\n"; $strBody .= "company $company\n"; $strBody .= "address $address\n"; $strBody .= "city $city\n"; $strBody .= "state $state\n"; $strBody .= "zipcode $zipcode\n"; $strBody .= "homearea $homearea\n"; $strBody .= "homeprefix $homeprefix\n"; $strBody .= "homesuffix $homesuffix\n"; $strBody .= "workarea $workarea\n"; $strBody .= "workprefix $workprefix\n"; $strBody .= "worksuffix $worksuffix\n"; $strBody .= "faxarea $faxarea\n"; $strBody .= "faxprefix $faxprefix\n"; $strBody .= "faxsuffix $faxsuffix\n"; $strBody .= "domain_name $domain_name\n"; $strBody .= "domain $domain\n"; $strBody .= "admin $admin\n"; $strBody .= "billing $billing\n"; $strBody .= "domaintime $domaintime\n"; $strBody .= "sendconnectinfoby $sendconnectinfoby\n"; $strBody .= "service $service\n"; $strBody .= "cardname $cardname\n"; $strBody .= "cardnumber $cardnumber\n"; $strBody .= "returnbyemail $returnbyemail\n"; $strBody .= "expire $expire\n"; $strMailTo = "msen-orders@staff.msen.com"; $strSubject = "$login Filled out BizLite Order Form\n"; $strXHeaders = "From: billing@staff.msen.com\n"; mail( $strMailTo , $strSubject, $strBody, $strXHeaders); $monthlist=array("31","28","31","30","31","30","31","31","30","31","30","31","31","28"); $today = getdate(); $month = $today['mon']; $day = $today['mday']; $year = $today['year']; $utaBody .= "\nAccountName $login\n"; $utaMailTo = "mgoward@staff.msen.com"; $utaSubject = "$login Filled out BizLite Order Form\n"; $utaXHeaders = "From: billing@staff.msen.com\n"; ordered($referredby,$returnbyemail,$login,$requestedpassword,$fname,$minitial,$lname,$company,$address,$city,$state,$zipcode,$homearea,$homeprefix,$homesuffix,$workarea,$workprefix,$worksuffix,$faxarea,$faxprefix,$faxsuffix,$domain_name,$domain,$admin,$billing,$domaintime,$sendconnectinfoby,$service,$cardname,$cardnumber,$expire,$errors,$error); } function ordered($referredby="",$returnbyemail="",$login="",$requestedpassword="",$fname="",$minitial="",$lname="",$company="",$address="",$city="",$state="",$zipcode="",$homearea="",$homeprefix="",$homesuffix="",$workarea="",$workprefix="",$worksuffix="",$faxarea="",$faxprefix="",$faxsuffix="",$domain_name="",$domain="",$admin="",$billing="",$domaintime="",$sendconnectinfoby="",$service="",$cardname="",$cardnumber="",$expire="",$errors="",$error=""){ $monthlist=array("31","28","31","30","31","30","31","31","30","31","30","31","31","28"); $today = getdate(); $month = $today['mon']; $day = $today['mday']; $year = $today['year']; $lastday = $monthlist["$month"]; if (($day +7) > $lastday) { $done_date = (($day +7) - $lastday); $done_month = ($month + 1); } else { $done_date = $day; $done_month = $month; } ?>
|
||||||||||||||||||
|
|||||||||||||||||||