<?php
session_start();
if (isset($_SESSION['loggedin'])){
	//user in logen in. Show a message on the screen
	echo "I can see that you are logged in<hr/>";
} else {
	//redirect the user to the login form.
	session_destroy();
	header('Location: login.php');
}
?>


<html>

<head>
<title>Films</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>

<body>


<div id="container">

	<div id="header">
	<! header picture in css >
	</div>
	
	<div id="navigation">
		<?php include 'navigation.php'; ?>
	</div>

<div id="aside">
<form method="LINK" action="films2.php">
<input type="submit" value="Ignore">
</form>
</div>

<div id="content">
<h1>Insert a new film to the database</h1>

<form action="insert-film.php" method="post">

Film title: <input type="text" size="40" name="filmtitle"><br><br>
Year: <input type="text" size="10" name="filmyear"><br><br>
Rating of film: <input type="text" size="10" name="filmrate"><br><br>
Description: <input type="text" name="filmdesc"><br><br>
Cover: <input type="text" name="filmcover"><br><br>
Trailer: <input type="text" size="60" name="filmtrailer"><br><br>
Official URL: <input type="text" size="60" name="filmofficialurl"><br><br>
Certificate: <input type="text" name="filmcert"><br><br>

<input type="submit" value="Insert">

</from>

</div>

<div id="footer">
Copyright &#169; Istvan Franko, 2014
</div>


</div>
</body
</html>