opdater frame
Jeg har lavet dette login system:(ja det er simpelt og dårligt)
------------------------------------------------
<?php
session_start();
$db = mysql_connect("localhost", "Hathor", "losinos");
mysql_select_db("users", $db);
$result=mysql_query("select * from users where user='$usr'");
$row=mysql_fetch_array($result);
if($pass!="" && $row[pass]=!"" && $row[pass]==$pass){
session_register("usr");
?>
<META HTTP-EQUIV="Refresh" CONTENT="1;URL="../index.htm">
parent.bottom.reload(true);
<?php
exit;
}
else
{
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body background="../bg.gif">
<h1>Login</h1>
<table border=0 width=99% height=70% align="left" valign="top">
<tr>
<td valign="top"><br>To login, enter your password and username in the boxes to the right, and click login.
<br>To register a new user, click <a href="signup.php">here</a>. <br><br>Note that you by signing up do not
gain access to all of the site, but only to some features. The only way to gain overall access is by getting
approval from Admin.</td>
<br>
<td valign="top"><br>
<FORM METHOD=POST ACTION=<?php echo $PHP_SELF;?>>
Username:<br>
<INPUT TYPE=TEXT NAME=usr><BR>
Password:<BR>
<INPUT TYPE=PASSWORD NAME=pass><BR>
<br>
<INPUT TYPE=SUBMIT VALUE=Login>
</form>
</td>
</tr>
</table>
<?php
}
?>
</BODY>
</HTML>
---------------------------------------------
Hvordan opdaterer jeg en anden frame på submit??
