•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 397,767 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,470 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 2731 | Replies: 3
![]() |
•
•
Join Date: Nov 2004
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Every time I try to write this page I encounter many errors, usually a blank page acan anybody help me? I am just learning, really just learning. Thanks
"Write an ASP page that has a form taking a user's name as input. Store this name in a permanent cookie that expires in 4 days, and whenever the page is opened again, default the name field to the cookie's content. You can use Visual InterDev, which is available through the MSDN agreement, as an editing tool."
Patty
"Write an ASP page that has a form taking a user's name as input. Store this name in a permanent cookie that expires in 4 days, and whenever the page is opened again, default the name field to the cookie's content. You can use Visual InterDev, which is available through the MSDN agreement, as an editing tool."
Patty
•
•
Join Date: Jul 2004
Location: Sydney, Australia
Posts: 166
Reputation:
Rep Power: 5
Solved Threads: 7
Post the code you have so far been working with and we can work through and help you with it.
If you don't have any code and want somebody to write the script from scratch I accept payment through PayPal :-)
If you don't have any code and want somebody to write the script from scratch I accept payment through PayPal :-)
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.
Lafinboy Productions
:: Website Design :: Website Development ::
Lafinboy Productions
:: Website Design :: Website Development ::
•
•
Join Date: Jul 2004
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Try this code not sure it will work in your case (not sure what you want to do)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<form action="?" method="post" name="name" id="name">
<input name="name" type="text" id="name" value="<%= Request.Cookies("name") %>">
<input type="submit" name="Submit" value="Submit">
<% If (cStr(Request("Submit")) <> "") Then %>
<% response.Cookies("name") = Request.Form("name")
Dim dateplus4
dateplus4 = DATEADD("d",4,Now())
Response.Cookies("firstname").Expires=dateplus4%>
<meta http-equiv="refresh" content="0;URL=?">
<% End If %>
</form>
</body>
</html>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<form action="?" method="post" name="name" id="name">
<input name="name" type="text" id="name" value="<%= Request.Cookies("name") %>">
<input type="submit" name="Submit" value="Submit">
<% If (cStr(Request("Submit")) <> "") Then %>
<% response.Cookies("name") = Request.Form("name")
Dim dateplus4
dateplus4 = DATEADD("d",4,Now())
Response.Cookies("firstname").Expires=dateplus4%>
<meta http-equiv="refresh" content="0;URL=?">
<% End If %>
</form>
</body>
</html>
•
•
Join Date: Dec 2004
Posts: 14
Reputation:
Rep Power: 4
Solved Threads: 0
Problem mostprobably in <form action="?" . Instead it use action="actionpagename.asp"
Next used debug editing. This is simple like Response.write "<br>err: " & err.description
response.end
Best of Luck.
~Populate
Next used debug editing. This is simple like Response.write "<br>err: " & err.description
response.end
Best of Luck.
~Populate
•
•
•
•
Originally Posted by AwSDesigns
Try this code not sure it will work in your case (not sure what you want to do)
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<form action="?" method="post" name="name" id="name">
<input name="name" type="text" id="name" value="<%= Request.Cookies("name") %>">
<input type="submit" name="Submit" value="Submit">
<% If (cStr(Request("Submit")) <> "") Then %>
<% response.Cookies("name") = Request.Form("name")
Dim dateplus4
dateplus4 = DATEADD("d",4,Now())
Response.Cookies("firstname").Expires=dateplus4%>
<meta http-equiv="refresh" content="0;URL=?">
<% End If %>
</form>
</body>
</html>
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
- how to show OLAP Reports in Crystal Reports in a ASP Page with Drill down option (ASP)
- Retriving data from excel sheet into an asp page (ASP)
- problem in javascript coding in asp page (ASP)
- Getting a blank asp page (ASP)
- How do i print asp page on client side "only the contents" (ASP)
- Retrieving values from pop up and displaying into asp page (ASP)
- How to Create TIME STAMP in ASP page (ASP)
Other Threads in the ASP Forum
- Previous Thread: sports score feeds
- Next Thread: ASP, Java and XML-RPC


Linear Mode