Jump to content

runtime error '800a004c'


Recommended Posts

Hi, I'm new to ASP and working from a dated book. The code in one example keeps giving me an error. Can anyone tell me what's wrong with the code? I'm using Dreamweaver to write the code, but running through the internet. The files are saved on the web server. I use crome because it tells me what's wrong. I'll post the code then post the error report. The code (and by the way, the txt file already exist.)

<%option explicit %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
">
<html xmlns="
">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Guest Book</title>
</head>
<body>
<h1>Guest Book Response</h1>
<%=request.form("FirstName")%> <br />
<%=request.form("LastName")%> <br />
Gender:<%=request.form("Gender")%> <br />
Age:<%=request.form("Age")%><br />
Email:<%=request.form("email")%><br />
<br />
<%
Dim filesys, peoplefile
Set filesys = createobject("scripting.FileSystemObject")
Set peoplefile=FileSys.OpenTextFile("Z:\vreid\gbpeople.txt",8,true)
Peoplefile.writeline request.form("firstname")
Peoplefile.writeline request.form("Lastname")
Peoplefile.writeline request.form("Gender")
Peoplefile.writeline request.form("age")
Peoplefile.writeline request.form("email")
Peoplefile.close
%>
<h3> This information has been saved.</h3>
<a href="gblist.asp">See others who signed in.</a>
</body>
</html>
The result:
Guest Book Response
Ginger, Reid
Gender:male, Female
Age:32
Email:greid@radford.edu
Microsoft VBScript runtime
error '800a004c'
Path not found
/gbproc.asp
, line 19
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...