I am trying to link a web page to irc server through PJIRC. I have my webpage login.html which has a form for user nick and password that connects to "chat.php" file. The chat applet is loading fine, but the nick parameter from the login page is not getting to the chat.php file. I have tried php tags and all but nothing seems to work. I am pasting the form code here and also the two ways i have tried to take the nick param to pjirc applet.
login.html
Code: Select all
<form action="chat.php" method="post" name='login' id="login" onsubmit="this.nick.value=cleanCAPS(this.nick.value, 8); return true;">
<span class="style32">Your Nick:</span>
<input name="nick" type="text" onchange="this.value=cleanCAPS(this.value, 8);" value='' size="18" maxlength="13" />
This does not work and the error i get on pjirc applet checker is nick parameter empty
Code: Select all
<applet code=IRCApplet.class width=942 height=439 align="top" archive="irc.jar,pixx.jar">
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
<param name="nick" value="<?$username ?>" >
</applet>
Code: Select all
<applet code=IRCApplet.class width=942 height=439 align="top" archive="irc.jar,pixx.jar">
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
<param name="nick" value="<?php $username ?>" >
</applet>