Click to See Complete Forum and Search --> : ASP Cookies Question


theflyingminst
03-19-2008, 08:20 PM
Hi I am using a circular form that sets css styles. The reason I say circular is because the form comes back to itself after submit.

I have a basic newbie cookie question where I want to know how to store the previously submitted data into the newly refreshed pages textbox input fields (you'll see my feeble attempt below).


style-gen.asp:

<form method="POST" action="set-style.asp">

<input type="text" name="backgrndclrc" size="9" value="<% =backgrndclrc %>">

<input type="submit" value="Submit" >

</form>


set-style.asp:

dim backgrndclrc

Response.Cookies("backgrndclr") = backgrndclrc


--- blah blah.. form handling --

response.redirect "style-gen.asp"


Thanks so much!