Accessing form elements

Results 1 to 2 of 2

Thread: Accessing form elements

  1. #1
    Join Date
    Dec 1969

    Default Accessing form elements

    hello friends i have a problem in accessing form elements.<BR>for eg.<BR>&#060;form&#062;<BR>&#060;input type=text name="text1" value=1&#062;<BR>&#060;input type=text name="text2" value=2&#062;<BR>&#060;input type=text name="text3" value=3&#062;<BR>&#060;input type=text name="text4" value=4&#062;<BR>&#060;/form&#062;<BR><BR>Is there any way in which i can catch the name of text box and value of text box throught ASP . I know <BR><BR>for each field in Request.Form<BR> Response.Write Request.Form(field) <BR>next<BR><BR>but it is not giving me text box name , it only gives me value of test boxes. i also want the name of box and value in the textbox. can any one help it out<BR>snehzz

  2. #2
    Join Date
    Dec 1969

    Default RE: Accessing form elements

    try this<BR><BR>For x = 1 to Request.Form.Count<BR> Response.Write Request.Form.Key(x) & " = "<BR> Response.Write Request.Form.Item(x) & "<BR>"<BR>Next <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts