Ik heb een foutje opgelopen als ik in mijn index.php login.php include. Dit doe ik omdat die dan mooi in het frame komt.
Zie hier de fout
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bas/domains/beerboys.nl/public_html/site/beveiligd/index.php:8) in /home/bas/domains/beerboys.nl/public_html/site/beveiligd/login.php on line 2
Het stukje code van index.php
<!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=UTF-8" />
<title>Beerboys design</title>
<link rel="stylesheet" type="text/css" href="./beerboys.css" media="all" />
<!--[if IE]>
<style type="text/css" media="all">.borderitem {border-style: solid;}</style>
<![endif]-->
</head>
login.php
<?PHP
session_start();
$host="localhost"; // De host (Meestal localhost)
$username="****************"; // Je mySQL
$password="***********"; // Je wachtwoord
$db_name="**************"; // Database naam
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
?>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST') {
Wie o wie?
Alvast bedankt.