Posted by Richard Lynch on 05/01/05 22:25
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
[Back to original message]
|