Jump to content

Login script not displaying


JC5

Recommended Posts

I have basically three files for this problemheader.php, footer.php, and the function whatever file that displays the login form if im not logged inhere are the filesheader.php

<?phperror_reporting(0); // we don't want to see errors on screen// Start a sessionsession_start();require_once ('db_connect.inc.php'); // include the database connectionrequire_once ('functions.inc.php'); // include all the functions$seed="0dAfghRqSTgx"; $domain =  "devwebsites.com"; // the domain name without http://www. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>BBoardX Forums • Login</title><style type="text/css">body {margin: 1px;	padding: 0px; } a {	text-decoration: underline } a:hover { 	color: #ff0000;	background: #ffff00;	text-decoration: underline;}--></style></head><body bgcolor="#fafafa" link="#000000" vlink="#000000" text="#000000"><center><table cellpadding="1" border="0" width="85%" height="95"><tr><td bgcolor="#e8e8f4" height="100%"><center><table cellspacing="1" cellpadding="0" border="0" width="100%" height="100%"><tr><td bgcolor="#FFFFFF" valign="middle"><center><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td valign="middle"> <a name="home"></a><a href="http://www.BBoardX.com"><img src="http://www.devwebsites.com/devwebsites.gif" height="80px" align="left" border="0" hspace="7" vspace="0" alt="http://www.BBoardX.com" title="http://www.BBoardX.com" /></a> <font size="1" face="arial" color="#000000">Welcome  to BBoardX</font><br /><a href="#"><font size="1" face="arial" color="#000000">register</font></a>, <a href="#"><font size="1" face="arial" color="#000000">login</font></a>,  <a href="#"><font size="1" face="arial" color="#000000">search,</font></a> <a href="#"><font size="1" face="arial" color="#000000">help,</font></a> <a href="#"><font size="1" face="arial" color="#000000">recent posts</font></a>, <a href="#"><font size="1" face="arial" color="#000000">unanswered posts</font></a></td><td align="right"><font size="1" face="arial" color="#000000"></font></td></tr></table> </center><table cellpadding="0" cellspacing="4" border="0" width="85%" bgcolor="#e0e0e0"><tr><td align="right"></td></tr></table><table cellpadding="0" border="1" cellspacing="1" width="85%"><tr><td bgcolor="#e8e8f4"><table cellspacing="1" cellpadding="8" border="0" width="100%"><tr bgcolor="#000077"><td><font size="1" face="verdana" color="#FFFFFF"><b>BBoardX • Tools and Icons</b></font></td></tr><tr bgcolor="#CCCCCC"><br /></td></tr><tr bgcolor="#fcfcfc"><td align="center" valign="middle"><form method="post" action="#">	<h3><a href="#">Login</a></h3>

footer.php

<hr><div id='footer'>Copyright 2007-2008 © <?php echo $domain; ?></div></body></html>

function for logging in

function show_loginform($disabled = false){?><form name="login-form" id="login-form" method="post"  action="/index.php">   <fieldset>   <legend>Please login</legend>   <dl> 	<dt><label title="Username">Username: </label></dt> 	<dd><input tabindex="1" accesskey="u" name="username" value="Username"onclick="if(this.value=='Username')this.value='';"onblur="if(this.value=='')this.value='Username';"type="text" maxlength="30" id="username" style="background-image:url(http://www.devwebsites.com/username.gif); background-position:left; background-repeat:no-repeat; height:19px; width:20%; border-bottom:#000000 solid 1px; padding-left:20px;" maxlength="21" size="10" title="Username" /> </dd>   </dl>   <dl> 	<dt><label title="Password">Password: </label></dt> 	<dd><input tabindex="2" accesskey="p" name="password" type="password" maxlength="21" id="password" value="Password" onclick="if(this.value=='Password')this.value='';"onblur="if(this.value=='')this.value='Password';"style="padding-left:20px; background-image:url(http://www.devwebsites.com/password.gif); background-position:left; background-repeat:no-repeat; height: 19px; width:20%; size="10" class="inputbox" title="Password" /></dd>   </dl>   <ul> 	<li><a href="/register.php" title="Register">Register</a></li> 	<li><a href="/lostpassword.php" title="Lost Password">Lost password?</a></li>   </ul>   <p><input tabindex="3" accesskey="l" type="submit" name="cmdlogin" value="Login" <?php	if ($disabled == true)	{		disabled="disabled"';	}   echo ' /></p></fieldset></form>';  }

Any idea why its not displaying?the url iswww.devwebsites.com/login/index.phpoh while im at it i might as well throw in index.php

<?php  require_once "header.php";  //contentinclude("login.php"); // more contentrequire_once "footer.php"; ?>

Help!!!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...