rendered paste body<form name="login" action="<?php print $self; ?>" method="<?php print $method; ?>" onSubmit="return chkForm();">
<span class="style16">Nickname:</span> <input name="nick" type="text" value="<?php
include('include.php'); //include our session handling file
if( $userdata['session_logged_in'] ) // Is the user logged in?
{
echo "".$userdata['username']."";
}
else
{
echo ""; // If user isnt logged in, show blank
}
?>" <?php if($no_nick != "") echo "readonly" ?>><?php if($no_nick != "") echo "<span class=\"style15\">You need to enter a nickname</span>" ?>
<input type="hidden" name="page" value="chat"><br /> <br />
<input type="submit" value="Connect">
</form>