i need a asp script out there for a guestbook. all the form input will be stored to a normal txt file, not a database. anyone have any links out there for this ? i have found a couple, but got errors when setting them up and it's been the script, not the server.
I would like to know how can I open a textfile from other website like www.website.com/jhon.txt.?
I want to open it in my default.asp, without remove my banners and buttons and all my Images, Im just want to open it in the middle of my asp page. How can I do that?
I cannot append to a textfile. This is my sample code:
set f=Server.CreateObject("Scripting.FileSystemObject") set obj_log .CreateTextFile"C:loglog.txt",true) obj_log.WriteLine("Added schedule by [Name]") f.close obj_log.close Set obj_log=Nothing Set f=Nothing
The problem is the next time i execute these lines from an asp page, it does not append in a new line. I cannot figure out how.It just keep on overwriting.
I cannot use the OpenTextFile method, it's never return and I get no error message! Setting Response.Buffer=False, has no effect. No matter if I use it ForReading or ForWriting, it never return. In the following code, the problem occurs at line 3.
aFileName = Server.MapPath("WEB_PROD.htm") set fs = server.CreateObject("Scripting.FileSystemObject") set fso = fs.OpenTextFile(aFileName, ForReading, False) s = ts.ReadAll ts.Close set ts = nothing Response.Write s
I am currently writing a script for a course i am doing, It lists all the files and folders on the server, and works similar to windows explorer ( if you click on the folder it shows the content ). I have enabled it so you can delete, view source, and download all files/folders.
Now theres one more thing i would like to do, and that is to enable the user to edit a file, and i am struggling quite a bit, any guidance, ideas or links to a similar tutorial. I am probably going about it completley the wrong way, I was trying to open the file read each line and write it into a textarea, so the user could edit it, and then save it.
With the following code I can create a new textfile if it does not exist, but it seems impossible to me, to append data to an existing file.
Dim objOpenFile, objFSO, strPath StrPath = Server.MapPath("../smslog.txt") Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(StrPath) Then Set objOpenFile = objFSO.OpenTextFile(StrPath, ForAppending) Else Set objOpenFile = objFSO.CreateTextFile(StrPath, True) objOpenFile.WriteLine "KundNr;Namn;Datum;Tid" 'header End if .. .. what I have done wrong?
I'm trying to make a text file search that will read a text file looking for the string the user typed in, then if it finds the string i want it to display all the information on that line then continue it's search through the rest of the file repeating the previous step if needed.
What i've got so far is it reading the text file in and it can search for a particular string(word, name etc) and say whether or not its in the file, but i don't know how to get it to display the whole line of information and continue it's search.
I'm pretty new to webprogramming. I use VWD 2008 Express Edition. I try to build a webpage and the content of that page is stored in a textfile on the filesystem. That way I can change the content of my webpage very easy. The problem is that I can't figure out how to show the content of that textfile in my browser.
I am having guestbook on my site with asp classic But I do not think this is the problem I am working with SQL server 2000 database I always find a porno posts in the posts like "Hi see this site [url=www.anysite.com]" What make me say that the problem is not from the asp code Is that even when i deactivate the send button or remove the page I still got
i have created a working register/login system.. so now i need to add the function that every user has its own guestbook. (im using access) i thought of having a system wich creates a database sub for every user. though i dont know wich code that would create this for me.. please help me with that code. (u dont need to think on the type of system i suggested, as long that i will get on the right track) so
database specs: need to have 3-4 tables: ID from message (optional) to
I am trying to make an "Ask an Expert" page where people can enter their question using a form. This form will then be sent to an email account. If the question is answered by someone in my office, both the question and answer will be sent to a webpage automatically.
Automatically is very important. This sounds like a guestbook but instead of displaying all the "questions (comments)", only the ones that are answered will appear. My server doesnt' have CDONT, so I think CDOSYS is my only option.
I have a client that is using a non-functional ASP/Access guestbook. The admin area is actually the only part that doesn't work. I don't have time to put much effort into debugging this problem. Does anyone know of a simple guestbook that utilizes ASP and Access?
I want to create a web page for my friends.(I have a subdomain and my server supports ASP scripts) It will contain a small basic guestbook.It must write the entries to a text file on the server.And i must be able to view the guestbook.
Right i am making an ASP guestbook. I have got the code and everything sorted for INSERTING into the database. But i dont no how to view the guestbook, in a guestbook kind of way I have searched everywhere, but theres no look.
if any body could point me in the direction of some tutorials for creating weblog/guestbook style entries. Where the comments can be added, displayed and viewed by visitors.
I have made a guestbook using ASP, and SQL (so he says). This is the first thing I've done using ASP, so as you'll probably realise I don't know much ASP and I don't know any SQL, most of the code is copied and pasted from my friend.
For some reason my guestbook isn't working, I'm not getting any errors, and the test entry my friend put into my database(adobe) isn't working. My friend thinks it's the SQL, I've been trying to fix it, but I don't really know what I'm doing, he can't find whats wrong with it either. what could be wrong, or willing to take a look at the code for me?
Ok say a person puts their email into my guestbook example (joe@joe.com). Well i want to take the person's email and convert it to an image when they post it.
here is the code for the email anyone know how to do it? <a href="mailto%= CmdShowEntries("EMAIL") %>"><%= CmdShowEntries("EMAIL") %></a>
I use a free database-driven ASP guestbook. I want to add a IP address blocking filter to it( just to block one particular guest). What is the easiest way to do so?
I have made a guestbook in .asp. Everything is working fine in that. But the only thing I want to change is the order in which the messages appear on the guestbook. Let me explain properly -
At the moment whenever anyone enters a message, that last message comes first on the guestbook. I dont want that.
I want that anyone who puts the message in the guestbook, their message should come last in the guestbook and those who has already put their message first in the guestbook, their message should come first. Code:
I'm trying to create a simple guestbook like script to work off a database. All I want is for people to add their Name and Comment in a form, and once a comment has been made, it directs off to another page which shows all the comments. Code: