require_once('../../lib/functions.inc'); require_once('session.inc'); //session if(!is_active_session()){ //session start_session(); } global $kbn; global $first_name; global $last_name; global $company_name; global $section; global $zip; global $street; global $city; global $state; global $country; global $mail; global $tel1; global $tel2; global $tel3; global $fax1; global $fax2; global $fax3; global $inquiry; global $kounyu; global $kounyu_name; global $inquiry; $str_kbn; $str_err; //Session if(!empty($_REQUEST["kbn"])){ $kbn = $_REQUEST["kbn"]; $str_kbn = $_REQUEST["kbn"]; } else { //return top @header("Location: http://www.ddknet.co.jp/English/index.html"); exit; } //error check if(!empty($_REQUEST["cmd"])){ //**** error search **** if(empty($_REQUEST["first_name"])){ //first_name $str_err = "true"; @header("Location: error.php?err=1&kbn=".$kbn); exit; } if(empty($_REQUEST["last_name"])){ //last_name $str_err = "true"; @header("Location: error.php?err=1&kbn=".$kbn); exit; } if(empty($_REQUEST["company_name"])){ //company_name $str_err = "true"; @header("Location: error.php?err=2&kbn=".$kbn); exit; } if(empty($_REQUEST["section"])){ //section $str_err = "true"; @header("Location: error.php?err=3&kbn=".$kbn); exit; } if(empty($_REQUEST["zip"])){ //zip $str_err = "true"; @header("Location: error.php?err=4&kbn=".$kbn); exit; } if(empty($_REQUEST["street"])){ //street $str_err = "true"; @header("Location: error.php?err=5&kbn=".$kbn); exit; } if(empty($_REQUEST["city"])){ //city $str_err = "true"; @header("Location: error.php?err=6&kbn=".$kbn); exit; } if(empty($_REQUEST["state"])){ //state $str_err = "true"; @header("Location: error.php?err=7&kbn=".$kbn); exit; } if(empty($_REQUEST["country"])){ //country $str_err = "true"; @header("Location: error.php?err=8&kbn=".$kbn); exit; } if(empty($_REQUEST["mail"])){ // $str_err = "true"; @header("Location: error.php?err=9&kbn=".$kbn); exit; } else { //seiki hyougen check $kekka = preg_match("/^\S+@\S+\.\S+$/",$_REQUEST["mail"]); // return 1 if ($kekka) { }else { $str_err = "true"; @header("Location: error.php?err=9&kbn=".$kbn); exit; } } if(empty($_REQUEST["tel1"])){ //tel1 $str_err = "true"; @header("Location: error.php?err=10&kbn=".$kbn); exit; } if(empty($_REQUEST["tel2"])){ //tel2 $str_err = "true"; @header("Location: error.php?err=10&kbn=".$kbn); exit; } if(empty($_REQUEST["tel3"])){ //tel3 $str_err = "true"; @header("Location: error.php?err=10&kbn=".$kbn); exit; } if(empty($_REQUEST["fax1"])){ //fax1 $str_err = "true"; @header("Location: error.php?err=11&kbn=".$kbn); exit; } if(empty($_REQUEST["fax2"])){ //fax2 $str_err = "true"; @header("Location: error.php?err=11&kbn=".$kbn); exit; } if(empty($_REQUEST["fax3"])){ //fax3 $str_err = "true"; @header("Location: error.php?err=11&kbn=".$kbn); exit; } if(empty($_REQUEST["inquiry"])){ //inquiry $str_err = "true"; @header("Location: error.php?err=12&kbn=".$kbn); exit; } //error ari if( $str_err == "true" ){ @header("error.php"); exit; } else { //Session $first_name = $_REQUEST["first_name"]; $last_name = $_REQUEST["last_name"]; $company_name = $_REQUEST["company_name"]; $section = $_REQUEST["section"]; $zip = $_REQUEST["zip"]; $street = $_REQUEST["street"]; $city = $_REQUEST["city"]; $state = $_REQUEST["state"]; $country = $_REQUEST["country"]; $mail = $_REQUEST["mail"]; $tel1 = $_REQUEST["tel1"]; $tel2 = $_REQUEST["tel2"]; $tel3 = $_REQUEST["tel3"]; $fax1 = $_REQUEST["fax1"]; $fax2 = $_REQUEST["fax2"]; $fax3 = $_REQUEST["fax3"]; $inquiry = $_REQUEST["inquiry"]; @header("Location: form1.php?kbn=".$kbn); exit; } } ?>
|
||||||||||||||||||||
TOP@@Contact Us | ||||||||||||||||||||
|
||||||||||||||||||||
Copyright©DDK Ltd., All Rights Reserved. |