2011-04-05 9 views

答えて

0

データをサーバーに送信する前に、HTMLフォームでデータを検証することを目的とする場合は、JavaScriptが必要です。フォーム検証のためのPowershellは意味をなさない。あなたが得ることができる唯一の妥当性検査は、例えば、ユーザーの入力にありますが、フォームの提出とは関係ありません。

+0

$ ie.Document.getElementById( "institution")。value = "ULB"; $ ie.Document.getElementById( "category")。value = "1"; $ ie.Document.getElementById( "rollnumber")。value = $ matricule; $ ie.Document.getElementById( "birth_day")。value = $ date1; $ ie.Document.getElementById( "birth_month")。値= $ date2; $ ie.Document.getElementById( "birth_year")。value = $ date3; #送信ボタン $ ie.Document.getElementById( "続行")をクリックします。 最後の行は動作しません – user693612

+0

使用している言語を明確にすることはできますか? PowerShellとjavascriptが混在しているようです...なぜあなたは ';'を使っていますか?あなたは '$ ie'をどうやって得るのですか? –

+0

私はpowershellを使用します – user693612