Jump to content


Photo

PHP Login page for java chat applet


  • Please log in to reply
No replies to this topic

#1 abyse

abyse
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 28 April 2006 - 12:03 PM

Hy i need a little help for a simple login page (form)

here is the code : chat.php

<FORM name="login" method="post" action="chat_f.php" onSubmit="return validate(this);">
<DIV align="center">
<TABLE width="60%" BORDER="0" CELLSPACING="2" CELLPADDING="2">

<TR>
<TD align="left">
<P ALIGN=right><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><strong>Nick Name: </strong></font>
</TD>
<TD align="left" valign="top"><INPUT NAME="username" TYPE="text" VALUE="Guest" SIZE="15"></TD>
</TR>

<TR>
<TD align="left">
<P ALIGN=right><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><strong>IRC Server: </strong></font>
<TD align="left" valign="top"><SELECT NAME="server" TYPE="text" VALUE="Bucharest.Ro.Eu.Undernet.Org" SIZE="1">
<option selected="selected">Bucharest.Ro.Eu.Undernet.Org</option>
<option>Diemen.Nl.Eu.Undernet.Org</option>
<option>Mesa.Az.Us.Undernet.Org</option>
</SELECT></TD></TR>

<TR>
<TD align="left">
<P ALIGN=right><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><strong>FullScreen: </strong></font>
<TD align="left" valign="top"><select name=screen id=screen onchange="changeAction();">
<option value="chat_f.php">Yes</option>
<option value="chat_n.php">No</option>
</select>



</TD>
</TR>

</TABLE>


<INPUT NAME="submit" TYPE="submit" VALUE="Chat">
</DIV>
</FORM>

---------------------------------------------------------------------------------

chat_f.php :

<param name="nick" value="<?=$username?>">
<param name="host" value="<?=$server?>">

---------------------------------------------------------------------------------

I dont anderstand why do not send the data to chat_f.php :( maybe I need to change the chmod ? oe what ?








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users