Changeset 17411 for branches/version-2/data/class/SC_CheckError.php
- Timestamp:
- 2008/07/09 11:13:21 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/SC_CheckError.php
r16582 r17411 460 460 if( strlen($this->arrParam[$value[1]]) > 0 && ! EregI("^[[:alnum:]]+$", $this->arrParam[$value[1]] ) ) { 461 461 $this->arrErr[$value[1]] = "※ " . $value[0] . "は英数字で入力してください。<br />"; 462 } 463 } 464 465 /* 英数記号の判定 */ 466 // value[0] = 項目名 value[1] = 判定対象文字列 467 function GRAPH_CHECK( $value ) { // 入力文字が英数記号以外ならエラーを返す 468 if(isset($this->arrErr[$value[1]])) { 469 return; 470 } 471 $this->createParam($value); 472 if( strlen($this->arrParam[$value[1]]) > 0 && ! EregI("^[[:graph:]]+$", $this->arrParam[$value[1]] ) ) { 473 $this->arrErr[$value[1]] = "※ " . $value[0] . "は英数記号で入力してください。<br />"; 462 474 } 463 475 }
Note: See TracChangeset
for help on using the changeset viewer.