Ik wil dat iemand een inlog script maakt. in de pagina hier onder.
Functies:
Wachtwoord + code moeten goed zijn. Er word dan een sessie aangemaakt. Maar deze moet worden vergeten als je van de website af gaat.
Wat krijg je er voor als hij het doet??
1punt!
Info:
Gebruikers naam = Code
Mysql gegevens:
Tabel: secure
Sessie die moeten worden aangemaakt van uit de database
gebruikersnaam = code
wachtwoord = wachtwoord
Inlog pagina
Functies:
Wachtwoord + code moeten goed zijn. Er word dan een sessie aangemaakt. Maar deze moet worden vergeten als je van de website af gaat.
Wat krijg je er voor als hij het doet??
1punt!
Info:
Gebruikers naam = Code
Mysql gegevens:
Tabel: secure
Sessie die moeten worden aangemaakt van uit de database
gebruikersnaam = code
wachtwoord = wachtwoord
Inlog pagina
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/session_start"]session_start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]functies.php[/COLOR][COLOR= #007700];[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="robots" content="nofollow" />
<title>Login voor gevoegden</title>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<!-- jquery core -->
<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>
<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>
</head>
<body id="login-bg">
<!-- Start: login-holder -->
<div id="login-holder">
<!-- start logo -->
<div id="logo-login">
<a href="index.php">Sitemaster database voor bevoegden!</a>
</div>
<!-- end logo -->
<div class="clear"></div>
<!-- start loginbox ................................................................................. -->
<div id="loginbox">
<!-- start login-inner -->
<div id="login-inner">
<form action="login.php" method="POST">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<th>Code</th>
<td><input type="text" name="admin" class="login-inp" /></td>
</tr>
<tr>
<th>Password</th>
<td><input type="password" name="password" value="" onfocus="this.value=" class="login-inp" /></td>
</tr>
<tr>
<th></th>
<td><input type="submit" name="verzend" class="submit-login" /></td>
</tr>
</table>
</form>
</div>
<!-- end login-inner -->
<div class="clear"></div>
`
<a href="forgot" class="forgot-pwd">Forgot Password?</a>
</div>
<!-- end loginbox -->
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]forgot[/COLOR][COLOR= #007700]]))
{[/COLOR]
?>
<!-- start forgotbox ................................................................................... -->
<div id="forgotbox">
<div id="forgotbox-text">Please send us your email and well reset your password.</div>
<!-- start forgot-inner -->
<div id="forgot-inner">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<th>Email address:</th>
<td><input type="text" value="" class="login-inp" /></td>
</tr>
<tr>
<th> </th>
<td><input type="button" name="forgot" class="submit-login" /></td>
</tr>
</table>
</div>
<!-- end forgot-inner -->
<div class="clear"></div>
<a href="" class="back-login">Back to login</a>
</div>
<!-- end forgotbox -->
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</div>
</body>
</html>