Jump to content

Nothing Happens


morrisjohnny

Recommended Posts

Site: http://johnnymorris.110mb.com/Username: testpassword: testWhen u try to logg in nothing happens, or when u create a new account again nothing happens, I have had the same codes working on a different host and i had to change teh data base for mySQL so i have changed them so they r working but nothing seems to be happening, I'm using this code for the index pageindex.php

<?require_once( '_check_user.php' );// bezoekers statistieken$pagename = "Index";include("./counter.inc.php");?><html><head>	<title>Mafia Beta</title>	<link rel="stylesheet" type="text/css" href="src/standard.css" /><script language=JavaScript> function screenshots(){var popurl="screenshots.php"winpops=window.open(popurl,"","width=800,height=600,")}function firstFocus(){   if (document.forms.length > 0)   {	  var TForm = document.forms[0];	  for (i=0;i<TForm.length;i++)	  {		 if ((TForm.elements[i].type=="text")||		   (TForm.elements[i].type=="textarea")||		   (TForm.elements[i].type.toString().charAt(0)=="s"))		 {			document.forms[0].elements[i].focus();			break;		 }	  }   }}</SCRIPT></head><body><table class="login"><tr><td align="center">	<table class="windowLogin">	<tr>		<td class="loginLeft">			<img src="images/logoLogin.jpg" />		</td>		<td class="loginRight">			<div class="mainTitle"><div class="logo"> </div></div>			<div class="mainText"><?if ($melding) {	echo "<b>$melding</b>";	echo "<br />";} else {?>			Last reset: <i>03-05-2005</i>			<br />			<br /><?}?>				<form method="post">				<table>				<tr><td class="column1"><li></td><td class="column2">Username</td><td class="column3"><input type="text" name="name" /></td><td></td></tr>				<tr><td class="column1"><li></td><td class="column2">Password</td><td class="column3"><input type="password" name="password" /></td><td></td></tr>				<tr><td></td><td></td><td class="column4"><input class="button" type="submit" value="Enter" /></td></tr>				</table>				</form>			</div>		</td>	</table>	<div class="windowLoginStatus">		 <a class="login" href="register.php">Register!</a> | <a class="login" href="recover.php">Lost Password!</a> | <a class="login" href="java script:screenshots()">Screenshots!</a></div></td></tr></table></body></html><??>

I am looking for a free PHP host with MySQL features thts very relibable, if anybody can help.Thanks in advance-Jny*I'm not sure if i have missed something out but i think thts how's it was, cause once i got it working on my old free host i re-downloaded it so i only needed to change a few things rather than alot.

Link to comment
Share on other sites

A few things:There's no action on the form, and there is no form processing on this page.User authentication is done in an included file, so we can't see the code for that in this file.If errors on the server are disabled, and you are getting an error, you wouldn't know it. You might want to intentionally cause an error and see if you get an error message.You might want to change your PHP tags to <?php ?> instead of <? ?>. Not all servers support the shorter tags.

Link to comment
Share on other sites

Well it's a configuration option, and it's enabled by default, but if you want to write code that will work on any server you need to use the long tags. Unless you want to rewrite everything if you try to move it to another server and they have that option disabled. It gets disabled because it is not compatible with xml.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...