View previous topic :: View next topic |
Author |
Message |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Wed Aug 16, 2006 9:36 am Post subject: Html help.... |
|
|
Hello hello,
Just a question..I want to find html for a comment box, where people could stop by and drop a couple words, without having to be a member of the hosting site. I know it can be done, can anyone help me with this.
Peace
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Wed Aug 16, 2006 11:05 am Post subject: |
|
|
Here is the code i'm using,but the problem seems to be when entering a comment it doesn't show up on the page..???...
<html>
<head>
<title>Thanks for your comments.</title>
</head>
<body>
<form action="comments.php" method="post">
<center>
<table>
<tr>
<th colspan="2">Leave a comment.</th>
</tr>
<tr>
<td><b>Name:</b></td>
<td><input type="text" name="name" width="5" height="5" wrap="on"></td>
</tr>
<tr>
<td><b>Comments:</b></td>
<td><input type="text" name="comment" wrap="on" overflow="true"></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="submit" value="Submit Comment">
</tr>
</table>
</form>
<p>
<p>
<textarea name="textarea" cols="50" rows="20" wrap="on" readonly="true">
</textarea>
</body>
</html>
Maybe you know of something better??...AHHHHH..im panicing!!
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Stevo Ville Supporter
![Ville Supporter Ville Supporter](images/supporter.gif)
![](http://users.theville.org/stevo/supporter.gif)
Joined: 08 Dec 2002 Location: Orange County Guild: TVR Posts: 9514
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
.Nazi.Slaya Registered User
![](http://photobucket.com/albums/b224/bmartinson13/Avatar/th_e1100969.gif)
Joined: 28 Jan 2004 Location: Wisconsin Posts: 46
|
Posted: Wed Aug 16, 2006 1:58 pm Post subject: |
|
|
I know you could just make your text fields and then have the submit box go the the .php file which would then in turn take the data in the text spots and update the page...I'm pretty sure you'd have to do the page in PHP tho....I've used similar coding to have the content emailed to my address.
Dunno if this helps, but the PHP code to email it to you would be this...you might be able to figure something out from looking at this:
Code: | <script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "EMAILADDRESS";
$mailsubj = "SUBJECT";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script> |
_________________
[deviantART] [Portfolio] [Able 6] |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Wed Aug 16, 2006 2:37 pm Post subject: |
|
|
Well basically, I am adding a guestbook to one part of the site. I know there are alot of guestbook scripts,but I'm freakin clueless. I am somewhat a newb at coding. I am also making a comment spot on the main page of the site, this is what we're tackling now.
Stevo.... On the main page of the site, I wanted to place a section where one could leave a comment, even a small blog. Then That comment would just stay on that main page. I dunno if that makes sense or not.
Php is what I thought, but I read somewhere about Cgi...??? does that make sense?
I could definitly use your help...thanks guys
**EDIT**
Nazi, that code left me no where. unless I did it wrong
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Stevo Ville Supporter
![Ville Supporter Ville Supporter](images/supporter.gif)
![](http://users.theville.org/stevo/supporter.gif)
Joined: 08 Dec 2002 Location: Orange County Guild: TVR Posts: 9514
|
Posted: Wed Aug 16, 2006 2:59 pm Post subject: |
|
|
SwEeTLuScIouSGaNjA wrote: | Stevo.... On the main page of the site, I wanted to place a section where one could leave a comment, even a small blog. Then That comment would just stay on that main page. I dunno if that makes sense or not. |
Alright, well the first thing you need is a place to store the comments such as a database or flat file. Then you need a script that can send and retrieve the comments.
Maybe you can post the contents of comments.php if it exists.
BTW, here's a list of guestbook scripts that might be useful: http://www.hotscripts.com/PHP/Scripts_and_Programs/Guestbooks/index.html?RID=N303412 _________________
The Official TVR Website
Fopp
Song of the Week |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Wed Aug 16, 2006 3:23 pm Post subject: |
|
|
Stevo,
There are no comments as of yet. This was kind've the last addition before releasing the site.
I read that a database was better then a flatfile, but anyways..Like I understand the concept of what needs to be done...I just have no clue how to do it. .
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Wed Aug 16, 2006 7:57 pm Post subject: |
|
|
Stevo...
I need you,I'm starting to panic.lol
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Stevo Ville Supporter
![Ville Supporter Ville Supporter](images/supporter.gif)
![](http://users.theville.org/stevo/supporter.gif)
Joined: 08 Dec 2002 Location: Orange County Guild: TVR Posts: 9514
|
Posted: Wed Aug 16, 2006 8:15 pm Post subject: |
|
|
Sorry, man, I'm still here.
Do you have access to a MySQL database?
I think the best option is to get a pre-made script with features to filter out the comments and a place where you can edit/add/remove comments. That way people can't screw up your layout with HTML or leave unwanted comments.
It sounds like you're looking for a shoutbox/tagboard type of thing. _________________
The Official TVR Website
Fopp
Song of the Week |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Thu Aug 17, 2006 8:01 am Post subject: |
|
|
Ya for sure, that would probablt be best stevo. I don't have MySQL database. Your thoughts on finding a pre-made script with those features you said would be the best idea I think to. Where and how could we do such things?
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Stevo Ville Supporter
![Ville Supporter Ville Supporter](images/supporter.gif)
![](http://users.theville.org/stevo/supporter.gif)
Joined: 08 Dec 2002 Location: Orange County Guild: TVR Posts: 9514
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
StrontiumDog Server Admin
![Server Admin Server Admin](images/admin.gif)
![](images/avatars/17842879344da815fb4ab6.jpg)
Joined: 31 Jan 2006 Location: Chilliwack, BC Guild: <eVa> & V$ Posts: 1115
|
Posted: Thu Aug 17, 2006 8:43 am Post subject: |
|
|
Does Ganja have PHP on his web server...?
Where are you putting your HTML, Ganj? _________________
"Oh Smeg! What the smeg's he smegging done? He's smegging killed me!" Lister, Red Dwarf |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Thu Aug 17, 2006 8:49 am Post subject: |
|
|
alright thanks stevo...I won't know if help is needed until, I can get on my main PC later when I get home. So I will let you know tonight.
I dont think I have PHP on my web server...but I'm not sure.lol.
This HTML is going right on my main page.
I'll update on how she goes once I get on my other PC. Thanks Stevo, much appreciated, ill talk to you later
-GaNj _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Stevo Ville Supporter
![Ville Supporter Ville Supporter](images/supporter.gif)
![](http://users.theville.org/stevo/supporter.gif)
Joined: 08 Dec 2002 Location: Orange County Guild: TVR Posts: 9514
|
Posted: Thu Aug 17, 2006 9:05 am Post subject: |
|
|
That script I posted uses PHP, so you might want to make sure it is on your server first.
Where is the site hosted? _________________
The Official TVR Website
Fopp
Song of the Week |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
SwEeTLuScIouSGaNjA Registered User
![](http://myspace-685.vo.llnwd.net/01106/58/65/1106415685_m.gif)
Joined: 29 Aug 2005 Location: Barrie, On Guild:=USV= Posts: 511
|
Posted: Thu Aug 17, 2006 9:07 am Post subject: |
|
|
my hosting site is piczo... ..
-GaNjA _________________
Kindness in words creates confidence. Kindness in thinking creates profoundness. Kindness in giving creates love
-Lao Tzu- |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|