Hi, Try this. I am assuming that you have already fetched the name of the user who is online, either from the database or from session or whatever. I am assigning the variable $uname with that "user online". I've used javascript to display the name in the textbox. Here goes the code. Simple.isn't it?? <script language="JavaScript"> function enterMe(who) { document.frmpok.txtpok.value=who; } </script> <? $uname="David"; ?> <form name="frmpok" action="#"> <input type="button" name="butpok" value="Enter" onclick="enterMe('<? echo $uname;?>');"> <input type="text" name="txtpok" value=""> </form> --- Anasta <neretlis@xxxxxxxxxxxxxx> wrote: > Hi, is this possible-- > I need a user (already logged in) to click on a > button and his username > shown in a text box next to it. > This is for a chat and they need to be seated > similar to poker game where > they sit-in/sit out. > > Any help apreciated ! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php