私たちのHRシステムでは、検証ユーザーは最低8文字のメモを取らなければなりません。しかし、彼らはパンチインすることはできません何を入れていない場合。しかし、彼らがやっていることは、彼らは彼らがパンチすることができます8空白を入れている:(私はPHPフォームの検証最小文字は空白を避ける必要がありますか?
if(empty($openPunch)){
$currentTime = $req->time;
if (strtotime($currentTime) >= strtotime('09:30')){
if(strlen($req->note) < 8){
$time = (strtotime($currentTime) - strtotime('09:30'));
$minutes = floor($time/60);
$minute = $minutes%60;
$hours = floor($time/3600);
return new IceResponse(IceResponse::ERROR,"Today you are late ".$hours.":".$minute." Hours You Can't Punch in without Fill the Correct Reason");
}
}
$openPunch = new Attendance();
}
これは、バンドエイドでキャブレターを修理するようなものです。ユーザーは、代わりに8個のドットなどを置くことができます。 –
なぜそれはjavascriptとしてフラグが立てられますか?クライアント側のチェックも実行しますか? – Arnauld