Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
graham55 #1
Cookies not being retrieved from hard drive
Hi,
Using Training from the source book - Dreamweaver MX dynamic sites.......but
software is actually Studio MX 2004, running on Windows 2000 platform using
local Microsoft IIS as testing server.......I am going through the book and got
to the following simple exercise to pass querystrings from a form, set cookies
on local hard drive and then open third page to say Hi....firstName lastName by
retrieving cookies. The names do not get passed to the third page via the Check
Cookie link:
Any help would be greatly appreciated...did set IE6 to accept All cookies.....
test_form_processor.asp
--------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<% Response.Cookies("firstName")= Request.QueryString("firstName") %>
<% Response.Cookies("firstName").Expires = Date + 30 %>
<% Response.Cookies("lastName") = Request.QueryString("lastName") %>
<% Response.Cookies("lastName").Expires = Date + 30 %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>Thank you, <%= Request.QueryString("firstName") %> <%=
Request.QueryString("lastName") %>, for filling out our form.
</p>Check <a href="test_form_processor_cookies.asp">cookie</a></body>
</html>
THIS PART WORKED until clicked cookie
-----------
calls the following file:
test_form_processor_cookies.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>Hi, <%= Request.Cookies("firstName") %> <%=
Request.Cookies("lastName") %>!
</p>
</body>
</html>
Seems that the response.cookies or request.cookies did not work
graham55 Guest
-
Where is that hard drive?
On Thu, 02 Feb 2006 05:59:29 +0000, Walter Mitty wrote: I don't understand why gparted wouldn't show anything but I'd use mount anyway. ... -
[PHP] USB Hard Drive
On Wed, 2003-07-23 at 12:49, Digital Directory USA, Inc wrote: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Off Topic but I must protest... You... -
120 GB hard drive on old P75
I am trying to install a 120 GB hard drive as a third hard drive on a Pentium 75 with a cmd640 IDE interface. I am attempting to replace a 60GB... -
new hard drive--now what?
Well, just to be sure, I would set it up from Scratch again and download and install your plugins also. There may be a way, but I wouldn't trust it... -
how hard to replace titanium internal hard drive? How to cloneold hard drive onto it?
Hi all - I have a 2001 titanium laptop with a 20 Gig hard drive. The thing is getting too full and I'm toying with the idea of getting a bigger...



Reply With Quote

