Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > Other Programming - Perl, C++, Java, ASP, .NET Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-28-2005, 08:17 AM   #1 (permalink)
foxvince
Member
 
Join Date: Dec 2005
Posts: 40
Default Guestbook Help

I'm new to this forum. I was looking for a website forum where I could come at times when I'm stuck and get help, and I found this on google.com.

So my question is I'm having some problems with my GuestBook making.

This is what I have- \/

One file (Notepad): Form.html
(and in that one this is the info I put)
[html]
<center><a href=guestbook.asp>View Guestbook</a><p>
<FORM ACTION="guestbook.asp" METHOD=post>
<b>Name</b><br>
<input type=text name=visitorsname size=25><br>
<b>Email</b><br>
<input type=text name=visitorsemail size=25><br>
<b>Message</b><br>
<textarea name=visitorsmessage rows=6 Cols=40>
</textarea><BR>

<br><input type="submit" value="Submit">
<input type="reset" value="Restart">
</FORM><center>

[/html]


Then I have another file: GuestBook.asp
(and this is what I have in there)

PHP Code:
<%
Set fs CreateObject("Scripting.FileSystemObject")
Folderpath=server.mappath("\") & "/cgi-bin/guestbook"
Wcounter=Folderpath &"
/counter.txt"

if request.form<>"" then
Set fs = CreateObject("
Scripting.FileSystemObject")
if fs.FolderExists(Folderpath) then
Set a = fs.OpenTextFile(Wcounter)
counter = Clng(a.ReadLine)
counter = counter + 1
a.close
else
Set a = fs.CreateFolder(Folderpath)
counter=1
end if

Set a = fs.CreateTextFile(Wcounter,True)
a.WriteLine(counter)
a.Close
Set fs=nothing

Set fs = CreateObject("
Scripting.FileSystemObject")
Set a = fs.CreateTextFile(Folderpath & "" & counter & "
.txt")
a.WriteLine("
<b><a HREF=mailto:" & Request.Form("visitorsname") & ">" & Request.Form("visitorsname") & "</a></b>")
a.WriteLine(Request.Form("
visitorsmessage"))
a.Close
Set a=nothing
Set fs=nothing

end if

Dim fs, f, f1, fc, s
Set fs = CreateObject("
Scripting.FileSystemObject")
Set f = fs.GetFolder(Folderpath)
Set fc = f.Files

Response.Write ("
<HTML><HEAD><TITLE>Guest book</TITLE></HEAD>")
Response.Write ("
<BODY BGCOLOR=FFFFFF>")
Response.Write ("
<TABLE BORDER=0 Width=100" & CHR(37) & ">")
Response.Write ("
<TR><TD BGCOLOR=C0C0C0>")
Response.Write ("
<FONT SIZE=5><B>Guest bookposted messages</B></FONT>")
Response.Write ("
</TD></TR></TABLE>")

For Each f1 in fc
Wfile=f1.name
if Wfile<>"
counter.txt" then
FiletoCheck=Folderpath & "
/" & Wfile
Set a=fs.OpenTextFile(FiletoCheck)
Theinfo=a.ReadAll
Response.write("
<pre>" & Theinfo & "</pre><hr>")
end if
Next
'to show last message in the top,
'remove previous 4 lines and write next 4 lines instead
' Theinfo="
<pre>" &a.ReadAll & "</pre><hr>" & Theinfo
' end if
'Next
'Response.write(Theinfo)
Response.write("
<div align=right><font size=2>Script provided by <a href=http://www.asptutorial.info>asptutorial.info</a></font></div>")

Response.Write ("</BODY></HTML>")
%> 
----------------------------------------------------------------------------------------

Everytime I try posting a message in it as a test it just goes into another IE window and shows the GuestBook.asp info?
What am I doing wrong here?
foxvince is offline   Reply With Quote
Sponsored Links
Old 06-09-2006, 04:16 PM   #2 (permalink)
ApeXX
Member
 
ApeXX's Avatar
 
Join Date: May 2006
Location: 127.0.0.1
Posts: 108
Default Re: Guestbook Help

I'm not that great at html, have you tried using a guestbook script?
__________________
Free Stuff: http://www.FriiBii.com
ApeXX is offline   Reply With Quote
Old 08-03-2006, 01:38 AM   #3 (permalink)
O~Snapple
Moderator Of The Year
 
O~Snapple's Avatar
 
Join Date: Jul 2006
Location: Cali Breeze
Posts: 716
Send a message via MSN to O~Snapple Send a message via Skype™ to O~Snapple
Default Re: Guestbook Help

Check out http://www.phpjunkyard.com and search for Gbook its sweet and easy to use its in PHP, and if you want to take a look at it go to Epademik.com and that is what the Guestbook is made from,
__________________
The Real Truth
Epademik Emcee Esq. New Album The 3rd Finger is in Stores Now!
Snap Marketing Management and Consulting
O~Snapple is offline   Reply With Quote
Old 08-06-2006, 01:22 AM   #4 (permalink)
Matrix_Ice
Junior Member
 
Join Date: Aug 2006
Posts: 8
Default Re: Guestbook Help

Quote:
Originally Posted by O~Snapple
Check out phpjunkyard.com and search for Gbook its sweet and easy to use its in PHP, and if you want to take a look at it go to Epademik.com and that is what the Guestbook is made from,

Thanks for those sites, ive also been looking for a guestbook script
Matrix_Ice is offline   Reply With Quote
Old 08-28-2006, 02:58 AM   #5 (permalink)
wileynet
Junior Member
 
Join Date: Aug 2006
Posts: 5
Default Re: Guestbook Help

http : // www scriptarchive com / guestbook . html <--- MATTS

tons o scripts ...
tons o fun ...

__________________
wileynet inc
wileynet is offline   Reply With Quote
Old 11-10-2006, 09:45 AM   #6 (permalink)
Formulasa
Junior Member
 
Join Date: Nov 2006
Posts: 1
Post Formula 1

FIA Formula 1 at Auto Moto Search Engine - page 1 FIA Formula 1
FIA Formula 1
Formulasa is offline   Reply With Quote
Old 11-12-2006, 11:28 PM   #7 (permalink)
Jillian
Junior Member
 
Join Date: Nov 2006
Posts: 1
Post about ufo activity

Hello
Wonderfull site

please, if you know anywhere about UFO activity - contact me ufos2006@yahoo.com
http://bestufo.org
Good Luck
Jillian is offline   Reply With Quote
Old 11-12-2006, 11:38 PM   #8 (permalink)
homesexvideo.org
Junior Member
 
Join Date: Nov 2006
Posts: 1
Post Sexy amatures and the circle jerk videos

Excuse me for offtop
Info about muscle gay sex free video, gratis sex video, black black free gay sex video, home secret sex video, free asian sex video clip , Video.
me for offtop
homesexvideo.org is offline   Reply With Quote
Old 11-13-2006, 03:23 AM   #9 (permalink)
AdvertBob
Junior Member
 
Join Date: Nov 2006
Posts: 1
Post AD program - purchase!!!

Hi man
Here you are: BotMaster.Net: autosubmitter's XRumer description - this soft is that what you looking for! That is REALLY exclusive soft, thats is able AUTOMATICALLY refresh and check proxylists, recognize captcha, autoconfirmate profiles on forums by e-mail, has built-in system "Question-answer", and a lot of more...

+100 for XRumer program
AdvertBob is offline   Reply With Quote
Old 11-13-2006, 06:54 AM   #10 (permalink)
GoogleKeyw
Junior Member
 
Join Date: Nov 2006
Posts: 1
Post Promotion SOFTWARE - purchase!!!

I'm use XRumer program too, very effective software.

I hear that XRumer 3.0 Gold Edition is coming soon It's will great!
GoogleKeyw is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:14 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums