Forum Moderators: open
When clicking on a link it refreshes the page causing the the other page to refresh which means that the info from the database dissapears and i have to re-enter the account info (you type in an account no. and it brings up the info)
Is there a way round this like passing a variable to the page? is so how?
Or is there another simpler way?
You want to use what is called a "querystring"
You see this alot within URL's such as...
xyz.asp?variable=1234 The querystring is symbolized after the "?" and "variable" represents the variable name you want to pass, and "1234" is the value of that variable.
Of course, you will need to get that information back from the the URL, and in order to do that, you need the following:
NewVar = Request.QueryString("variable") NewVar represents the new variable you wish to use, which in the above code, sets itself to the value being passed through the querystring.
Does that help much? I hope!
~ Speedster