RE: Passing a parameter - 3/28/2001 17:39:00
Ok Mark, reading through once again I think I may have more of an idea what you want to do. (Correct me if I am wrong . . . )You post the account number from the login page, and want to use that on a third page no? But, you don't know how to carry this account number onto that third page except by using a text "input" field. I think what you need here is a "hidden" input field. For instance, in the form of your second page . . . <form etc, etc> <input type="hidden" name="account" value="<%=Request.Form("account") %>"> </form> If the information comes from the first page as part of the URL, then the Request.Form would be Request.QueryString If, instead of a form, you want to pass the account number to the third page as part of the URL, use something like this . . . <a href="thirdpage.asp?account=<%=Request.Form("account") %>">third page line</a> These 2 methods of passing parameters are knows as POST (when using forms) and GET (when using URL parameters). Session variables are another way of passing parameters between pages, but, they should be used as sparingly as possible. If you should ever decide that you have to use them, the syntax is like this . . . <% Session("sessionvariablename") = "anexamplevalue" %> to set them, and . . . <% Response.Write Session("sessionvariablename") %> To use them. I just used Response.Write to illustrate how they can be used. I hope this is nearer the mark, and makes some kind of sense  All the best Vince ------------------ Internet Business Solutions S.L.(Spain)
|