Forum Moderators: coopster

Message Too Old, No Replies

make a form like post new topic in a forum

make a form like post new topic in this forum

         

xbl01234

11:36 am on Dec 22, 2006 (gmt 0)

10+ Year Member



hello;

i 'd like to ask you some questions to make a submit foum which we use in this forum for postting new topic, please.

some question as following;

1) in some forum, the top bar of sign- B I U Setc, are they make by button and using in submit form or something else.

2) If i highlight a sentence in the textarea, and then click on the a buton for the sign of B, and then the sign of ['B'] and [/'B'] will come out, and the sentence will sit between then automaticaly.

how can i do that?

do i need a action listener to listen whether i highline a senetnce? and how can the two signs suddenly jump up and sit in the right, position?

3) before i display these masage on the screen, do i need to one word by one word to check whether they have special sign like B I U link etc.
what kind of method can i check it?

Thanks

jatar_k

4:10 pm on Dec 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would download phpbb and see how they do it, personally I never paid much attention. I would imagine it is javascript.

xbl01234

7:03 pm on Dec 22, 2006 (gmt 0)

10+ Year Member



Thanks lot, please tell me when you understand it.

Maybe you are right, i has not idea what kind of method could help me to reach that in php?

jatar_k

10:01 pm on Dec 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



php is server side though, without posting what is in the textarea back to the server php has no idea what is going on. That's why a client side solution such as javascript would be the way to go.

xbl01234

10:55 pm on Dec 22, 2006 (gmt 0)

10+ Year Member



Thanks jatar_k;

I will go to javascripe thread.