0

hi guys,

How to set html element value using php???
if it's not possible how to do this??

Thanks

2
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by MxDev
0

more information required
it is easy, <element value='<php echo $VALUE; ?>' > but the exact format depends on where you are getting the values, and what you want them to do,

Edited by almostbob: n/a

0

what I'm trying to is php chatbox I can't get the data from mysql database to be inserted in the message box.

How I could do this???

Thanks

0

more information required,
is the chat reloading the page, simple php,
or writing to an existing page without refreshing the page, AJAX
what have you tried, what code are you using

Edited by almostbob: n/a

0

Actually I think I'm writing a simple php chatbox web application. The code that I used is a simple database that contain the messages and input textbox with submit button, and the chatbox itself which contain all the messages from all users, my problem that I can't get the data from database to be displayed in chatbox??

Any help appreciated.

Thanks

0

From the above, you want the script writing to an existing page without refreshing the page, thats AJAX, the page uses javascript to poll at interval a server php script and writes returned html data into the existing <div><textarea> etc
the best place for this q is probably the adjacent Javascript/Dhtml/AJAX forum, where the mavens could likely write it in their sleep,
I cheat, I used a prewritten chat http://www.phpfreechat.net

Edited by almostbob: n/a

0

could you help me with some code cause I could figure out any!!!!!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.