Jump to content

Saving & Then Recalling


morrisjohnny

Recommended Posts

Hi I'm Using this codeFor my "import" page

<form method="get" action="Welcome.asp">First Name: <input type="text" name="fname" /><br />Last Name: <input type="text" name="lname" /><br /><br /><input type="submit" value="Submit" /></form>

Then This code for "Welcome" page

<%response.write(request.querystring("fname"))response.write(" " & request.querystring("lname"))%>

Then I'm Having problems recalling their fname on a future page, IS their anyway i can store their fname so it can be recalled on any page they visit?I Have Set up my idea on a web pageI'd Be Very greatful if someone could help me out-JnyBtw I would much rather use Javascript Sine i'm using a webhost that won't alow .asp files so i also plan in run the .asp file from a Javascript document, Is that possible?

Link to comment
Share on other sites

Or you can use cookie instead.So you will have<%Dim strName, strLastNamestrName = Request.QueryString("fname")strLastName = Request.QueryString("lname")Response.Cookies("mycookie")("first_name") = strNameResponse.Cookies("mycookie")("last_name") = strLastNameResponse.Write "Hello " & Request.Cookies("mycookie")("last_name") & ", " & Request.Cookies("mycookie")("first_name")%>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...