Jump to content

PHP Login page for java chat applet


abyse

Recommended Posts

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 ?



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.