Results 1 to 2 of 2

Thread: ASP & FORMs

  1. #1
    Rigmor Guest

    Default ASP & FORMs

    &#060;form name="nnn" actiom="abc.asp" method="post"&#062;<BR>&#060;input type="text" name="test"&#062;<BR>&#060;input type="text" name="test"&#062;<BR>&#060;/form&#062;<BR><BR>now there should be array elements nnn.test[0] and nnn.test[1]<BR>is this right? So, when I submit it to abc.asp<BR>I want to to this:<BR>x = Request.Form("test");<BR><BR>Can i now access those elements like this:<BR><BR>Response.Write(x[0]);<BR>Response.Write(x[1]);<BR><BR>????????????<BR><BR>

  2. #2
    Akhil Guest

    Default RE: ASP & FORMs

    Are you using VBScript or JScript??<BR>Insert this statement before Response.write(x[0])<BR>x = split(x, ",")<BR><BR>coz, x = Request.Form("test") will return a string having values separated by commas. Split will return an array x and then you can use x[0], x[1]<BR><BR>hope this answers your doubt!!

Posting Permissions

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