Click to See Complete Forum and Search --> : pass value
fyanym
05-16-2005, 02:18 AM
i have some textbox name no1,no2,no3....i name tat like
name="<%=no&p%>"
how to i use request.form to call the value and display the value using response.write?
i try to write the code like this but it doesnt work
a= Request("no" & CStr(p))
and
a = Request("no"&p)
response.write(a)
buntine
05-16-2005, 02:43 AM
Does p equal the same thing on both pages?
Try Response.Write(p) from the second page and see if it equals the same.
Regards.
fyanym
05-16-2005, 02:50 AM
okay...thanx
phpnovice
05-16-2005, 07:19 AM
i have some textbox name no1,no2,no3....i name tat like
name="<%=no&p%>"
how to i use request.form to call the value and display the value using response.write?
You would have had to use something more like the following to sequentially name the fields as you've specified:
For p = 1 To 3
...
name="<%="no" & p %>"
...
Next
Thus, the following is how to iterate through the values of fields that are sequentially numbered in their naming convention:
For p = 1 To 3
Response.Write "no" & p & "=" & Request.Form("no" & p) & "<br>" & vbCrLf
Next
phpnovice
05-16-2005, 07:45 AM
How is this going to work?
For p = 1 To 3
...
name="<%="no" & p %>"
...
Next
Regards.
What do you mean? Of course, I presume you realise the elipses mean that essential code is omitted.
This is so as to not cloud the issue actually being demonstrated.
buntine
05-16-2005, 08:52 AM
Yer, thats Ok. I misread the post because of the omitted code.