k two pages. aspform.asp and aspcookie.asp aspform posts its values to the aspcookie.asp page. the cookies are created on the aspcookie.asp page with the following code:
Code:
Response.Cookies("fname")= Request.Form("fname")
Response.Cookies("lname")= Request.Form("lname")
Response.Cookies("fname").Expires=#june 1, 2005#
Response.Cookies("lname").Expires=#june 1, 2005#
now what i was hoping to do is access the fname and lname cookies on the aspform.asp page and echo i mean Response.Write them to their respective form elements. see source below:
Code:
<form name="form1" method="post" action="aspcookies.asp">
<%
fname = Request.Cookies("fname")
lname = Request.Cookies("lname")
%>
<label>fname</label> <input name="fname" type="text" id="fname" value="<% Response.Write(fname)%>">
<label>lname</label> <input name="lname" type="text" id="fname" value="<% Response.Write(lname)%>">
<input name="submit" type="submit" value="Submit">
</form>
has any body got any answers for me? where are ASP veterans.