
-----------------------------------
Lanks
Wed Jun 18, 2008 5:08 pm

Shoutout box
-----------------------------------
i am somewhat new to html, trying to get a webpage going actually, i was wondering what would be a good code for a shoutout box or something similiar

thanks

-----------------------------------
Tony
Wed Jun 18, 2008 5:24 pm

RE:Shoutout box
-----------------------------------
HTML only describes a document. Things like "this is a block of text" or "this is a link".

If you want someone to actually post to a shoutbox, you will need to have a submit form and something on the server-side to process the said request.

Ruby, PHP, Java... whatever you are running on your server. Though assuming you don't want to be bothered with building anything yourself, I'm pretty sure that there are 3rd party, hosted, options that will require you to simply embed some JavaScript into you page (and that will take care of the rest).

-----------------------------------
Lanks
Wed Jun 18, 2008 5:31 pm

Re: Shoutout box
-----------------------------------
okay thank you for the quick reply i will look around google for some java script i can use

-----------------------------------
jeffgreco13
Thu Jun 19, 2008 9:46 am

Re: Shoutout box
-----------------------------------
if you're planning on using a shout box JavaScript is not the correct option. JavaScript is low level client side scripting, that really can't help you much other than form validation.]

Give me some info on the server you are using... find out if PHP is insalled, or even CGI support.

EDIT: Tony's referring to a "Form Handler" btw

-----------------------------------
Aziz
Thu Jun 19, 2008 9:52 am

RE:Shoutout box
-----------------------------------
Yes, there's free scripts out there that you can sign up for a guestbook/shoutbox/whatever, stick some javascript on your page, and it works. I'm assuming he doesn't have a host with scripting.

-----------------------------------
jeffgreco13
Thu Jun 19, 2008 9:57 am

Re: Shoutout box
-----------------------------------
Yeah you're right Aziz... I just REALLY hate those 3rd party programs because there's so little customization you can do. But hey if you don't care having a little ad from them on your site go for that option.

[url=http://www.tag-board.org]Tag Board

-----------------------------------
Aziz
Thu Jun 19, 2008 10:32 am

RE:Shoutout box
-----------------------------------
I don't think he came here to learn to program =/. Why don't you make one, add an ad for you, and then give it to him? Profitssss

-----------------------------------
jeffgreco13
Thu Jun 19, 2008 10:37 am

Re: Shoutout box
-----------------------------------
that could work... if he wants that i suppose i could help with that... im awfully lazy right now tho lol

-----------------------------------
Lanks
Thu Jun 19, 2008 3:48 pm

Re: Shoutout box
-----------------------------------
i wouldn't mind learning php or whatever i would need to do it. for now im trying this tut 
Warning: mysql_connect() 

i am using zymic's free webhosting which has mysql, php, and phpmyadmin

[/quote]

-----------------------------------
jeffgreco13
Fri Jun 20, 2008 9:07 am

Re: Shoutout box
-----------------------------------
K so you know that to connect you need to specify the "localhost" on the correct port right?

$connect = mysql_connect("localhost:port","username","password");

Also what might be happening is you haven't actually set a username with a password for your MySQL database yet.
Try logging on to your admin panel and see if there's any options for creating a MySQL database using a wizard or something.. that way you can physically see what you are making, then you will be able to set a username and password.

You could use that script but here's a simpler suggestion.
[url=http://www.w3schools.com/PHP/php_mysql_intro.asp]http://www.w3schools.com/PHP/php_mysql_intro.asp
Make your own script using the tutorials from that site. It will teach you everything you need to know.

index.html
- contains the form asking for name, email, comments, whatever
- This form should submit to the iframe
- contains an iframe linking to shoutbox.php

shoutbox.php
- should contain an if statement at the top checking if there is any input being sent.
- if there is it adds it in the database, REMEMBER TO USE PRIMARY KEY
- Once it gets thru that process it will echo the results onto the page. Use a loop.

-----------------------------------
Lanks
Fri Jun 20, 2008 10:53 am

Re: Shoutout box
-----------------------------------
im going to take a stab at making my own, i have verified that yes i did create a database with a user and set the privileges, but what do i put as the localhost:port  :?: is it just my website?
thanks

-----------------------------------
jeffgreco13
Fri Jun 20, 2008 11:13 am

Re: Shoutout box
-----------------------------------
wellll you might not need a port so just put "localhost" 