Mary,
This appears to be a simple permissions error. When running a cgi script
you are running with the web server's credentials, so your log file is not
writeable by that user. When run locally, you are using the credentials that
you are logged on as, so the script has access. This is no different from
Unix/Linux.
Change the permissions on the file to allow access by your web server. The
user is usually IUSER_HOSTNAME. Substitute HOSTNAME with your server's host
name. Give that user read/write permissions on "guestbook.err."
James M Riddles
IT Technician
White Oak Printing
1180 Dillerville Road
Lancaster, PA 17601
Ph: (717) 291-2222 Ext. 228
Fax: (717) 291-5678