Bij mij is het zo dat ik op een frame pagina ga inloggen op frame 1. daar staat een formulier (inlognaam en wachtwoord). die informatie wordt doorgestuurd naar frame 2. hierin wordt alles gecontroleerd en als het dan goed is dan wil ik dat er automatisch wordt door gestuurd naar een pagina.
zou iemand mij daarmee kunnen helpen.
[script]
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>RBT'98</title>
<base target="hoofd">
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Program%20Files/Microsoft%20Office/Office10/fpclass/animate.js">
</script>
</head>
<STYLE type="text/css">
<!--
BODY {
scrollbar-face-color:#004080;
scrollbar-highlight-color:#0000FF;
scrollbar-3dlight-color:#FF0000;
scrollbar-darkshadow-color:#FF0000;
scrollbar-shadow-color:#0000FF;
scrollbar-arrow-color:#FFFFFF;
scrollbar-track-color:#003162;
}
-->
</STYLE>
<body bgcolor="#0000FF" onLoad="dynAnimation()">
<?php
session_start();
if(!empty($_POST)){
include("dbconnect.php");
$gebruiker = $_POST["inlognaam"];
$wachtwoord = $_POST["wachtwoord"];
$query = "SELECT * FROM gebruiker WHERE inlognaam='$gebruiker' AND wachtwoord='$wachtwoord'";
$result = mysql_query($query);
if(mysql_num_rows($result) > 0){
$_SESSION['gebruiker'] = $gebruiker;
//goede login
echo "<script>window.alert('Je bent ingelogd')</script>";
echo "<script>history.back.go(-1);</script>";
}
else { //foute login
echo "Je hebt geen goede combinatie van gebruikersnaam en wachtwoord gebruikt!";
die();
} }
else{
echo "Eerst iets invullen";
}
?>
</body>
</html>
[/script]
1.216 views