Asp Guestbook W/ Textfile
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.
View Replies
ADVERTISEMENT
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?
View Replies
View Related
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.
View Replies
View Related
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
View Replies
View Related
i want to create atext file using asp(filesystemobject but my explorer hangs on. Why?
View Replies
View Related
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.
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
Alright im tryin 2 write 2 a text file and then read from tat text file on the same page is this possible this is what i got so far. Code:
View Replies
View Related
I read a text file in ASP using readline. The line is stored in a variable. I want to be able to search that line for a specific word.
How do I go about this?
View Replies
View Related
After I've performed a query and held the data in a RecordSet (rsQuery), can
I dump the recordset into a comma separated text file? How?
View Replies
View Related
I wuz just wondering, whats the easiest way to read a text files last line...
I know i have to count the lines and put pointer to the last line and read from there.. but i cant get the hang of it
heres my code:
View Replies
View Related
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.
View Replies
View Related
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
View Replies
View Related
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
View Replies
View Related
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.
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
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.
View Replies
View Related
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.
View Replies
View Related
I have been looking around for a long time now to find one. All I want is a simple ASP guestbook script that is customilizational (sp) and free.
View Replies
View Related
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?
View Replies
View Related
Can anyone help me with a script to avoid people posting links in my guestbook ?
View Replies
View Related
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>
View Replies
View Related
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?
View Replies
View Related
i want to implement a guestbook on my website hosted on IIS.
i have created the form already and what i want is a page returned (after submission) saying thanx as well as showing the comments on it.
the fields i have chosen: name, email and comments.
i do not want it to be database connected but rather a file (txt) connected guestbook.
View Replies
View Related
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:
View Replies
View Related
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:
View Replies
View Related