okay i fixed that, but now what? I am trying to link the main.php file but I end up getting a bunch of visible code on the WYSIWYG design board. also I changed the login button to link it but I lost my picture and now I just have a brown box with the word 'login' and no picture or CSS is kicking in. heres the code i worked on:
Code:
<!--Login Area Starts -->
<div id="login-area">
<form action="process.php" method="post" name="Login" id="Login">
<label>Members Login:</label>
<div align="center">
<input name="user" type="text" id="user" value="<? echo $form->value("user"); ?>" maxlength="32" />
<? echo $form->error("user"); ?>
<input name="pass" type="password" id="pass" value="<? echo $form->value("pass"); ?>" maxlength="32" />
<? echo $form->error("pass"); ?>
<input type="submit" src="http://forums.x10hosting.com/images/login-btn.gif" value="Login" class="login-btn" alt="Login" title="Login" />
<br class="spacer" />
<span class="style1"><span class="style2"><?
/**
* User has already logged in, so display relavent links, including
* a link to the admin center if the user is an administrator.
*/
if($session->logged_in){
echo "<h1>Logged In</h1>";
echo "Welcome <b>$session->username</b> <br><br>"
."[<a href=\"userinfo.php?user=$session->username\">My Account</a>] "
."[<a href=\"useredit.php\">Edit Account</a>] ";
if($session->isAdmin()){
echo "[<a href=\"admin/admin.php\">Admin Center</a>] ";
}
echo "[<a href=\"process.php\">Logout</a>]";
}
else{
?></span><?
/**
* User not logged in, display the login form.
* If user has already tried to login, but errors were
* found, display the total number of errors.
* If errors occurred, they will be displayed.
*/
if($form->num_errors > 0){
echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font>";
}
?> | Remember Me | <a href="forgotpass.php">Forgot Password?</a></span></div>
</form>
</div>
<!--Login Area Ends -->
also when i hit login it just opens up main.php in text form on my web browser and does nothing, along with all my other buttons...