比較的簡単な質問があります。
PHP を使用すると、PHP を使用してコーディングされた方法でフォームが常に検証されることが保証されますか?
これは...次のようなことをすると:
if (strlen($_POST['myInput'] == 0)
{
Do this...
}
ユーザーが使用しているクライアントに関係なく適用されますか? 例: IE、Firefox、モバイル デバイス (Blackberry、Samsung)、Linux ブラウザ?
私がこれを尋ねる理由は、html 検証を適用する意味がpattern
まったくわからないからです。
これに関するご意見をお待ちしております。ありがとうございました!
編集:
if (!preg_match("#^([0-9 ]{10,13})?$#", $_POST['myInput']))
{
// Apply error pointers
$_SESSION['myInputError'] = 'class="badInput" autofocus="autofocus"';
include "$docRoot/html/forms/reg/user_info.html.php";
exit();
}