Reply to Re: [PHP] users online

Your name:

Reply:


Posted by Deep on 05/02/05 10:49

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

[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

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