|
 |
asp_databases thread: dynamic textboxes
Message #1 by jay48202@y... on Fri, 4 Oct 2002 17:23:16
|
|
Hi,
How do I generate multiple textboxes dynamiclly in a form and receive
those values in the next form.
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl(cntr)" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
What should I do. correct me, if I am wrong in page1.
Thanks in advance,
Jay
Message #2 by Colin.Montgomery@C... on Fri, 4 Oct 2002 18:40:32 +0100
|
|
you've forgotten to put the "cntr" in <% %> tags.
Try this:
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl<%=cntr%>" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
HTH,
Col
-----Original Message-----
From: jay48202@y... [mailto:jay48202@y...]
Sent: 04 October 2002 18:23
To: ASP Databases
Subject: [asp_databases] dynamic textboxes
Hi,
How do I generate multiple textboxes dynamiclly in a form and receive
those values in the next form.
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl(cntr)" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
What should I do. correct me, if I am wrong in page1.
Thanks in advance,
Jay
*******
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the
intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are
not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.
For further information about Clifford Chance please see our website at http://www.cliffordchance.com or refer to any Clifford
Chance office.
Message #3 by jay48202@y... on Fri, 4 Oct 2002 19:14:44
|
|
Hi,
Thanks
Ok,How do I recieve them in second page?
Thanks in advance,
Jay
> you've forgotten to put the "cntr" in <% %> tags.
Try this:
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl<%=cntr%>" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
HTH,
Col
-----Original Message-----
From: jay48202@y... [mailto:jay48202@y...]
Sent: 04 October 2002 18:23
To: ASP Databases
Subject: [asp_databases] dynamic textboxes
Hi,
How do I generate multiple textboxes dynamiclly in a form and receive
those values in the next form.
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl(cntr)" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
What should I do. correct me, if I am wrong in page1.
Thanks in advance,
Jay
*******
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended
recipient, please telephone or email the sender and delete this message
and any attachment from your system. If you are not the intended
recipient you must not copy this message or attachment or disclose the
contents to any other person.
For further information about Clifford Chance please see our website at
http://www.cliffordchance.com or refer to any Clifford Chance office.
Message #4 by Colin.Montgomery@C... on Fri, 4 Oct 2002 19:15:55 +0100
|
|
sorry, in a hurry to the pub!
Same sort of loop/code. Just use Request.Forms("variableName").
If ur stuck, hopefully someone can elaborate for you.
HTH,
Col
-----Original Message-----
From: jay48202@y... [mailto:jay48202@y...]
Sent: 04 October 2002 20:15
To: ASP Databases
Subject: [asp_databases] RE: dynamic textboxes
Hi,
Thanks
Ok,How do I recieve them in second page?
Thanks in advance,
Jay
> you've forgotten to put the "cntr" in <% %> tags.
Try this:
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl<%=cntr%>" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
HTH,
Col
-----Original Message-----
From: jay48202@y... [mailto:jay48202@y...]
Sent: 04 October 2002 18:23
To: ASP Databases
Subject: [asp_databases] dynamic textboxes
Hi,
How do I generate multiple textboxes dynamiclly in a form and receive
those values in the next form.
page1.asp
-----------
<FORM name=frm1 action="page2.asp" method="POST">
<%
For cntr=1 to n
%>
<input type="text" name="lbl(cntr)" size=10 value=>
<%Next%>
</FORM>
page2.asp
----------
<FORM name=frm2 action="page2.asp" method=post>
What should I do. correct me, if I am wrong in page1.
Thanks in advance,
Jay
*******
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended
recipient, please telephone or email the sender and delete this message
and any attachment from your system. If you are not the intended
recipient you must not copy this message or attachment or disclose the
contents to any other person.
For further information about Clifford Chance please see our website at
http://www.cliffordchance.com or refer to any Clifford Chance office.
Message #5 by jay48202@y... on Sun, 6 Oct 2002 22:53:31
|
|
Hi,
I need to pass 'n' textbox values from one page to another page in asp.
page1 is working, I couldn't able to display those in page2. Here is the
code:-
page1.asp
---------
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<form name="frm1" action="page2.asp" mehod="POST">
<%
Dim cntr
for cntr= 1 to 10
%>
<input type="text" size=10 name="lbl(<%response.write(cntr)%>)">
<%next%>
<input type="submit" value="submit">
</form>
</body>
</html>
page2.asp
----------
<html>
<head>
<title>New Page 2/title>
</head>
<body>
<form name="frm2" action="page2.asp" mehod="POST">
<%
Dim cntr,var(10)
for cntr= 0 to 9
var(cntr)=Trim(Request.Form("lbl(cntr)"))
response.write(var(cntr))
next
for cntr=0 to 9
Response.write(var(1))
next
%>
</form>
</body>
</html>
Kindly correct me.
Thanks,
Jay
|
|
 |