- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/LC_Page_InputZip.php
r21420 r21441 58 58 $arrErr = $this->fnErrorCheck($_GET); 59 59 // 入力エラーの場合は終了 60 if (count($arrErr) > 0) {60 if (count($arrErr) > 0) { 61 61 $tpl_message = ""; 62 foreach ($arrErr as $key => $val) {62 foreach ($arrErr as $key => $val) { 63 63 $tpl_message .= preg_replace("/<br \/>/", "\n", $val); 64 64 } … … 75 75 76 76 // 郵便番号が発見された場合 77 if (!empty($arrAdsList)) {77 if (!empty($arrAdsList)) { 78 78 $data = $arrAdsList[0]['state']. "|". $arrAdsList[0]['city']. "|". $arrAdsList[0]['town']; 79 79 echo $data; … … 112 112 $arrErr = $objFormParam->checkError(); 113 113 // 親ウィンドウの戻り値を格納するinputタグのnameのエラーチェック 114 if ( 114 if (!$this->lfInputNameCheck($arrRequest['input1']) ) { 115 115 $arrErr['input1'] = "※ 入力形式が不正です。<br />"; 116 116 } 117 if ( 117 if (!$this->lfInputNameCheck($arrRequest['input2']) ) { 118 118 $arrErr['input2'] = "※ 入力形式が不正です。<br />"; 119 119 } … … 130 130 function lfInputNameCheck($value) { 131 131 // 半角英数字と_(アンダーバー), []以外の文字を使用していたらエラー 132 if (strlen($value) > 0 && !preg_match("/^[a-zA-Z0-9_\[\]]+$/", $value)) {132 if (strlen($value) > 0 && !preg_match("/^[a-zA-Z0-9_\[\]]+$/", $value)) { 133 133 return false; 134 134 }
Note: See TracChangeset
for help on using the changeset viewer.