Help with moving a log-in box please.

Discussion in 'HTML & Website Design' started by chrisj, Aug 12, 2007.

  1. #1
    I previously asked if someone could please tell me how to move the log-in box on this page to the left hand column, and change it so it's no longer a box, but simply the two log-in fields with the corresponding names "username" & "password", and locate it all above the "Home" and Signup" links?

    Here is the code. Below that code, is the replacement code that I was kindly provided which does in fact move the log-in box as requested.

    But when I log-in using the replacement code page, it shows the User as not registered. The original code page showed the User as registered.

    So I compared the original code with the replacement code, and the discrepancy I found was that this line is missing from the replacement code:

    <td style='font-size:14px' class='fieldLabel'>

    Could this be the reason why the User does not show as registered, because this line is missing from the replacement code?

    If so, how/where can I corporate this into the replacement code to see if it remedies this mystery?

    Thanks.

    Original code:
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    
    </style><table width="770" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"
    style="border-right: solid 1px #6b6b6b";>
    	<tr>
    		<td width="174" align="left"valign="top" bgcolor="#A30100">
    
    		<a href="index.php"><font color="white"><strong>&nbsp;&nbsp;Home</strong></font></a><br />
    		<A href='index.php?command=signup_page'><font color="white"><strong>&nbsp;&nbsp;Signup</strong></font></A>
    		<br />
    		[member_menu]&nbsp;</td>
    		<td width="420" valign="top">&nbsp;&nbsp;&nbsp;[main_content]&nbsp; </td>
    		
    		<td width="174" valign="top" bgcolor="#FFFFFF" align="right">
    			<TABLE width="174" style='border:1px solid gray' cellpadding="0" cellspacing="0" >
    			<form method="POST" action="index.php">
    		<input class='field' type='hidden' name='command' value='account'>
    		<input class='field' type='hidden' name='param' value='login'>
    				<tr><td colspan='2' style='background-color:gray;color:white;font-size:14;font-weight:bold'>&nbsp;Login</td></td>
    				<TR height='5px'><td height='5px'>&nbsp;</td></TR>
    				<tr>
    					<td style='font-size:14px' class='fieldLabel'>Username</td>
    					<td><input style='height:17px' class='field' type='text' size='12' maxlength="30" name='user_name' value='[user_name]'>&nbsp;	
    					</td>	
    				</tr>
    				<tr>
    					<td style='font-size:14px'  class='fieldLabel'>&nbsp;Password&nbsp;</td>
    					<td><input style='height:17px' class='field' type='password' size='12' maxlength="30" name='password' >&nbsp;
    					</td>
    				</tr>
    				<TR height='5px' > 
    					<td colspan='2' class='errorMessage' align="center">&nbsp;
    						<SPAN style='font-size:11px'>[login_message]</SPAN></td>
    				</TR>
    				<tr><td colspan="2" align="center"  class='hLine'><A href='index.php?command=send_pass'>
    					<SPAN style='font-size:11px;'>forgot password?</SPAN></A><br />
    					<center><input class='button' type='submit' value='Login'></center>
    					
    	
    					</td>
    				</tr>
    				
    			  </form>
    		</TABLE>
    		
    	</tr>
    </table>
    Code (markup):



    Replacement code:
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    
    <link href="../style.css" rel="stylesheet" type="text/css" /><style type="text/css"></style>
    
    <table width="770" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF"style="border-right: solid 1px #6b6b6b";> <tr>  <td width="174" align="left"valign="top" bgcolor="#A30100">   
    
    <form method="POST" action="index.php">  
    
    <input class='field' type='hidden' name='command' value='account'>  
    
    <input class='field' type='hidden' name='param' value='login'>   
    
     <font color="white">Username</font>    
    
    <input style='height:17px' class='field' type='text' size='12'maxlength="30" name='username' value='[user_name]'>&nbsp;     <br>
    
    <font color="white">Password</font>     
    <input style='height:17px' class='field' type='password'size='12' maxlength="30" name='password' >&nbsp;     &nbsp;      
    
    <br><SPAN style='font-size:11px'>[login_message]</SPAN>    <br><A href='index.php?command=send_pass'>     
    
    <SPAN style='font-size:11px;'><font color="white">forgotpassword?</font></SPAN></A><br />     <center><input class='button' type='submit' value='Login'></center>     </form>  
    
    <a href="index.php"><fontcolor="white"><strong>&nbsp;&nbsp;Home</strong></font></a><br />  <A href='index.php?command=signup_page'><fontcolor="white"><strong>&nbsp;&nbsp;Signup</strong></font></A>  <br />  [member_menu]&nbsp;</td>  <td width="420" valign="top">&nbsp;&nbsp;&nbsp;[main_content]&nbsp; </td>  <td width="174" valign="top" bgcolor="#FFFFFF" align="right"> </tr></table>
    	
    	</tr>
    </table>
    Code (markup):
     
    chrisj, Aug 12, 2007 IP