Re: users online

From: Date: Sun, 01 May 2005 19:25:00 +0000
Subject: Re: users online
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-214292@lists.php.net to get a copy of this message
On Sun, May 1, 2005 1:35 am, Anasta said: > 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. <?php echo $name;?> What am I not getting here?... Maybe you want it to happen on the CLIENT which wouldn't be PHP?... <FORM ACTION="#" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Who Am I?" onClick="JavaScript:showname('<?php echo $name;?>'); return true;"></FORM> Your showname function in JavaScript will probably have to use the 'innerHtml' value or something like that to alter the text you want to change. I forget exactly what it is, but this isn't a JavaScript list anyway. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#214292) next »