Hallo,
Ik heb nodig met onze site. (http://gigakliks.nl)
1e probleem Gefixt door Rik
2e Probleem:
Ik wil dat als je op de inlog knop drukt hij dit doet:
Afbeelding niet beschikbaarDe bron kon niet worden geladen (img42.imageshack.us).Bron openen ↗
als je dit voor me kaar krijgt krijg je hier voor 0,2 tot 0,4 punt.
Het moet wel veilig zijn!
Ik heb nodig met onze site. (http://gigakliks.nl)
1e probleem Gefixt door Rik
2e Probleem:
Ik wil dat als je op de inlog knop drukt hij dit doet:
Afbeelding niet beschikbaarDe bron kon niet worden geladen (img42.imageshack.us).Bron openen ↗als je dit voor me kaar krijgt krijg je hier voor 0,2 tot 0,4 punt.
Het moet wel veilig zijn!
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]settings.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Gigakliks</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<div class="wrapper">
<div class="navbg">
<div id="navcontainer">
<ul id="navlist">
<li><a href="index.php">Home </a></li>
<li><a href="aanmelden.php">Aanmelden </a></li>
<li><a href="inloggen.php">Inloggen </a></li>
<li><a href="adverteren.php">Adverteren </a></li>
<li><a href="linkpartners.php">Linkpartners </a></li>
<li><a href="FAQ.php">FAQ </a></li>
<li><a href="forum.php">Forum </a></li>
<li><a href="contact.php">Contact </a></li>
</ul>
</div>
</div>
<div class="banner">
<div class="bannerontop"><a href="#"><img src="images/21j3ho4.png" alt="logo" width="340" height="80" border="0"/></a></div>
<div class="content">
<div class="leftcolumn">
<h2>Navigatie</h2>
<div class="navvy">
<ul class="navvylist">
<li><a href="index.php">Home</a></li>
<li><a href="aanmelden.php">Aanmelden</a></li>
<li><a href="inloggen.php">Inloggen</a></li>
<li><a href="adverteren.php">Adverteren</a></li>
<li><a href="ledenlijst.php">Ledenlijst</a></li>
<li><a href="linkpartners.php">Linkpartners</a></li>
<li><a href="FAQ.php">FAQ</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/session_is_registered"]session_is_registered[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]memberid[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<p><p>U bent niet ingelogd!<br> Log je in of meld je eerst aan."[/COLOR][COLOR= #007700];[/COLOR]
?>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</div>
<div class="rightcolumn">
<h3>Inloggen</h3>
<div class="maincontevt">
<p> <div class="info"> <a class="info" href="#nogo"></a> </div>
<p><p>
Hieronder kan je jezelf inloggen met je aangemaakt account.<br>
Heb je dit nog niet gedaan maak dan een account via de pagina aanmelden.<br>
Als je dit al hebt gedaan gelieve dan onderstaande gegevens in te vullen.<br>
<br>
Als je Foute Gebruikersnaam En / Of wachtword invult Gebeurt er niks! <br> [COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$pass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pass[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE username = $user AND pass = $pass"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$object[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$memberid[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$object[/COLOR][COLOR= #007700]->[/COLOR]id[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$active[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$object[/COLOR][COLOR= #007700]->[/COLOR]active[COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$active[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<meta http-equiv="refresh" content="0;URL=index.php">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$active[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"yes"[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]memberid[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$memberid[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<meta http-equiv="refresh" content="0;URL=saldo.php">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<br><br>Inloggen..."[/COLOR][COLOR= #007700];
}
}}[/COLOR]
?>
</p>
<form name="form1" method="post" action=""> Gebruikersnaam:<br>
<input name="user" type="text" id="user" value="">
<br><br>
Wachtwoord:<br>
<input name="pass" type="password" id="pass">
<br><br>
<input type="submit" name="Submit" value="Inloggen >>">
</form>
</div><br>
<a href="http://www.gigakliks.nl/wachtwoord.php"><u>Wachtwoord vergeten?</u></a>
</p>
<p> </p>
</div>
</div>
</div>
<div class="footer"> Copyright 2009 www.gigakliks.nl | Alle rechten voorbehouden </a></div>
</div>
</div>
</body>
</html>
Krijgen we nog een code ofzoiets?
.