ASP@Workshop 
HOME > ASPリファレンス > Request オブジェクト > Form

Form (Request オブジェクト)

Request.Form( key )
Request.Form( index )
cnt = Request.Form.Count

引数

key
値を取得するフォーム要素の名前です。
Index
値を取得するフォーム要素の番号です。1以上の指定可能です。
cnt
フォーム要素数を取得します。

解説

フォーム要素の値を取得します。
Formタグ内にあるInput要素のValue値を取得します。
<form>
<input type="text" name="txtname" value="999">
</form>
というFormが送信された場合、Request.Form("txtname")で 999 を取得できます。

使用例

s1 = Request.Form("txtInput")
s2 = Request.Form(1)

関連項目

CookiesQueryStringServerVariablesTotalBytes



ASPリファレンス

Application オブジェクト
ASPError オブジェクト
Request オブジェクト
Response オブジェクト
Server オブジェクト
Session オブジェクト
ObjectContext オブジェクト


Copyright (C) 2006-2008 ASP@Workshop All rights reserved.