| @@ -1,35 +1,35 @@ | ||
| 1 | -<?php | |
| 2 | -global $usces; | |
| 3 | -$error_message = ''; | |
| 4 | -if( isset($_POST['inq_name']) && !WCUtils::is_blank($_POST['inq_name']) ) { | |
| 5 | - $inq_name = trim($_POST['inq_name']); | |
| 6 | -}else{ | |
| 7 | - $inq_name = ''; | |
| 8 | - if($usces->page == 'deficiency') | |
| 9 | - $error_message .= __('Please input your name.', 'usces') . "<br />"; | |
| 10 | -} | |
| 11 | -if( isset($_POST['inq_mailaddress']) && is_email(trim($_POST['inq_mailaddress'])) ) { | |
| 12 | - $inq_mailaddress = trim($_POST['inq_mailaddress']); | |
| 13 | -}elseif( isset($_POST['inq_mailaddress']) && !is_email(trim($_POST['inq_mailaddress'])) ) { | |
| 14 | - $inq_mailaddress = trim($_POST['inq_mailaddress']); | |
| 15 | - if($usces->page == 'deficiency') | |
| 16 | - $error_message .= __('E-mail address is not correct', 'usces') . "<br />"; | |
| 17 | -}else{ | |
| 18 | - $inq_mailaddress = ''; | |
| 19 | - if($usces->page == 'deficiency') | |
| 20 | - $error_message .= __('Please input your e-mail address.', 'usces') . "<br />"; | |
| 21 | -} | |
| 22 | -if( isset($_POST['inq_contents']) && !WCUtils::is_blank($_POST['inq_contents']) ) { | |
| 23 | - $inq_contents = trim($_POST['inq_contents']); | |
| 24 | -}else{ | |
| 25 | - $inq_contents = ''; | |
| 26 | - if($usces->page == 'deficiency') | |
| 27 | - $error_message .= __('Please input contents.', 'usces'); | |
| 28 | -} | |
| 29 | -if( isset($_POST['reserve'])) { | |
| 30 | - foreach($_POST['reserve'] as $key => $value){ | |
| 31 | - $key = trim($key); | |
| 32 | - $reserve[$key] = trim($value); | |
| 33 | - } | |
| 34 | -} | |
| 35 | -?> | |
| 1 | +<?php | |
| 2 | +global $usces; | |
| 3 | +$error_message = ''; | |
| 4 | +if( isset($_POST['inq_name']) && !WCUtils::is_blank($_POST['inq_name']) ) { | |
| 5 | + $inq_name = trim($_POST['inq_name']); | |
| 6 | +}else{ | |
| 7 | + $inq_name = ''; | |
| 8 | + if($usces->page == 'deficiency') | |
| 9 | + $error_message .= __('Please input your name.', 'usces') . "<br />"; | |
| 10 | +} | |
| 11 | +if( isset($_POST['inq_mailaddress']) && is_email(trim($_POST['inq_mailaddress'])) ) { | |
| 12 | + $inq_mailaddress = trim($_POST['inq_mailaddress']); | |
| 13 | +}elseif( isset($_POST['inq_mailaddress']) && !is_email(trim($_POST['inq_mailaddress'])) ) { | |
| 14 | + $inq_mailaddress = trim($_POST['inq_mailaddress']); | |
| 15 | + if($usces->page == 'deficiency') | |
| 16 | + $error_message .= __('E-mail address is not correct', 'usces') . "<br />"; | |
| 17 | +}else{ | |
| 18 | + $inq_mailaddress = ''; | |
| 19 | + if($usces->page == 'deficiency') | |
| 20 | + $error_message .= __('Please input your e-mail address.', 'usces') . "<br />"; | |
| 21 | +} | |
| 22 | +if( isset($_POST['inq_contents']) && !WCUtils::is_blank($_POST['inq_contents']) ) { | |
| 23 | + $inq_contents = trim($_POST['inq_contents']); | |
| 24 | +}else{ | |
| 25 | + $inq_contents = ''; | |
| 26 | + if($usces->page == 'deficiency') | |
| 27 | + $error_message .= __('Please input contents.', 'usces'); | |
| 28 | +} | |
| 29 | +if( isset($_POST['reserve'])) { | |
| 30 | + foreach($_POST['reserve'] as $key => $value){ | |
| 31 | + $key = trim($key); | |
| 32 | + $reserve[$key] = trim($value); | |
| 33 | + } | |
| 34 | +} | |
| 35 | +?> | |