Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a BBS for a newbie 2

Status
Not open for further replies.

ChiefJoseph

Programmer
Feb 16, 2001
44
US
Hey I want to have info that is submited inserted into a large textbox. Is there a specific cmd that I can use?
thanx
ChiefJoseph
 
Could you please make your question more specific?

Are you wanting to make a bulliten board where users can post messages and people can respond?

Are you wanting to manipulate the text within the text box that is submitted to the CGI script?

Please update your post.

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
yes my I want my bbs to allow people to post messages and be able to respond. Kind of like whats going on here but I want the posted message to be inserted into a scrolled textbox(maybe a listbox). Is this the totally wrong way to approach this problem? text that is submited will need to be filterd for language and ex..

Does this system that tek-tips has use java-script to resize the hight for new messsages that are posted?

I've done alot of research on this stuff but non of it seems to be in the Camel books.

Thanks,

ChiefJoseph
mcrookston@episcopal-ut.org
 
First, do you know any Perl? Since you have read the Camel books, I assume that you do.

What I can gather from your questions, you want a forum where people post messages in a textarea such as the one below and it displays the messages on the screen such as the messages above this. Is this correct?

When you ask, "Does this system that tek-tips has use java-script to resize the hight for new messsages that are posted?", what exactly do you mean by this? Are you asking if the height of the box your message is contained in when viewed on the page is JavaScript, the answer is no. Each message is in a table cell (basic HTML) and the length of the message decides the height.

Please be more precise in your question as I am still not understanding you all the way.

Thank you,

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
I know a little Perl(enough to debug) but I'm still learning basic good programming techniques.
I guess the basic idea was to have one large textbox like there is on this site to type a message into. Next when that message is submitted have it posted into another large textbox that is set to read-only.
Another idea is instead of using a textbox, use a listbox to display the message on one column and the date, title, ect… on other columns.
I was thinking if set up right, the common user would feel more comfortable with the GUI. The idea was to make it look pretty.


But I didn't realize that all you have to do is through the message into a table. I think this makes my idea very lame.

Thanks for all of your patience with my questions,

ChiefJoseph
mcrookston@episcopal-ut.org
 
Ahh, I get it now.

Ok, here is the logic behind what you want:

A user has a text area to type into. They type into it the message they want to say. Then they click the submit button and it submits the information into a database which can be a real database, such as mySQL or a text file. Also, with the post is an unique id that has been assigned to the post so that you can call that id later to display that post. Perl is not the best language for database interaction, either.

When a user come backs to that post, the Perl script calls that id from the text file and prints the appropriate message.

Email me at vcherubini@cnunited.com and I can send you some code because it is too much to post here.

Hope this helps,

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
One additional note...... In some versions of Netscape, the text area boxes are limitted to several hundred lines. IE does not seem to have this problem.


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top