469,317 Members | 1,987 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

Passing Value One Form To Another Form

idsanjeev
241 100+
SIR I AM PASSING VALUE FROM ONE FORM TO ANOTHER FORM THROUGH COOKIES BUT IS CAN ONLY TRANSFER LAST VALUE
HOW CAN PASS VALUE AFTER CLICKIN ON LINK
I AM USING THE CODE IS
FOR LINK
<td><a href=voicereply.asp?opt1=<%=R("top_id")%>>Reply</a></td>
FOR STORING IN COOKIES
response.cookies("vtopid")=R("top_id")
TO PASS ON NEXT PAGE AND WANT TO INSERT TOPID IN TO TABLE
FOR DISLAY
Expand|Select|Wrap|Line Numbers
  1. <table border=0 width=400 > 
  2. <%
  3. For Each stropt1 in Request.QueryString
  4. %>
  5. <tr><TD ><th><font face="monotype corsiva"><b>Topic ID</b></center></font></th></TD><%Response.Write "<td>" & Request.QueryString(stropt1) & "</td></tr>"%>
  6. </tr>
  7.      <%next %>
  8. </table>
  9.  
AND CODE FOR INSERT IN TO TABLE IS
Expand|Select|Wrap|Line Numbers
  1. vtopid=request.form("vtopid")
  2.     vtopid=trim(vtopid)
  3. R.Open "Select * from topic ", conn, adOpenStatic, adLockOptimistic, adCmdText
  4. R.Addnew
  5. R("top_id") =request.cookies("vtopid")
  6. <input type="hidden" name="vtopid" value="<%=vtopid%>">
  7.  
SO PLESE ANY BODY HELP ME TO STOR THATS TOPID WHICH IS DISPLAYED
Oct 27 '07 #1
4 2513
jhardman
3,406 Expert 2GB
SO PLESE ANY BODY HELP ME TO STOR THATS TOPID WHICH IS DISPLAYED
OK, but how do you want it stored?

Jared
Oct 28 '07 #2
idsanjeev
241 100+
i want to store thats topid which is displyed by querystring
i have also another problem in storing value i am using two table topmaster and reply top_id is primary keyin topmaster and its forgien key in reply is top_id and rep_id i wants to store more than on value in repply table refrence of topid but it constrains error generated when no of data in topmaster and reply is not same so how can i control it .i wants to if one record in master table then more than one record stored in reply and when topid is change it outomatic start with value oneat all change of topid
Oct 29 '07 #3
jhardman
3,406 Expert 2GB
The following code will append a new top_id to the end of the cookie "vtopid"
Expand|Select|Wrap|Line Numbers
  1. response.cookies("vtopid")=request.cookies("vtopid") &","& R("top_id")
I think this is what you are looking for. To use them, you can send these all to an array like this:
Expand|Select|Wrap|Line Numbers
  1. myTopIDArray = split(request.cookies("vtopid"), ",")
I hope this helps.

Jared
Oct 29 '07 #4
idsanjeev
241 100+
Thanks
i found it.
Oct 30 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Richard | last post: by
3 posts views Thread by domeceo | last post: by
1 post views Thread by Al Jans | last post: by
9 posts views Thread by itarizin | last post: by
4 posts views Thread by John Sheppard | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.