I'm not sure what I'm doing wrong. Please help me, it's my first PHP site.
Quote:
<?
if ( $plyrname == "" ) {
echo '<form action="login.php" method="post" name="login" HSPACE=0 VSPACE=0 BORDER=0>
<B>Username : </B><input type="text" size="12" maxlength="10" name="usr" class="fieldsetheadinputs" />
<input type="hidden" name="action" value="process">
<BR><b>Password : </b><input type="password" size="12" maxlength="10" name="pwd" class="fieldsetheadinputs" />
<BR /><center><input NAME="submit" TYPE=image VALUE="Login" SRC="images/Login.jpg" ALT="logout" WIDTH="60" HEIGHT="21">
<BR><a href="create.php" onClick="return GB_showFullScreen(\'create a player\', this.href)"><img src="images/Register.jpg" border="0"></a></center>
</form>
</fieldset>';
}
else
echo "<center>";
echo display_ava_profile($plyrname);
echo "<BR>";
echo $plyrname;
echo "<br>";
echo money($winnings);
echo "</center>";
?>
|
If you're not sure what I'm doing. I'm trying to have a login box, then when you're signed in, it displays your profile picture, and name, and how much money you got (Poker site)
Problem I'm getting is the blank image, and random MySQL text is coming up. How do I hide the else statement until it's necessary? :S