Reply to Re: [PHP] users online

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация