Re: users online

From: Date: Mon, 02 May 2005 07:49:15 +0000
Subject: Re: users online
Groups: php.general 
Request: Send a blank email to php-general+get-214317@lists.php.net to get a copy of this message
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@westnet.com.au> 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

« previous php.general (#214317) next »