View Single Post
Old 07-23-2009, 08:56 AM   #2 (permalink)
Normo
The Contributor
 
Normo's Avatar
 
Join Date: Oct 2008
Location: UK
Posts: 30
Thanks: 0
Normo is on a distinguished road
Default

You've missed out the <form> tag, the </head> tag, the <body> tag, the </body> tag, the end comment tag in the JavaScript, the </html> tag and the </table> tag.

For most of what you described you can achieve with JavaScript. As for inserting information into the table, I would suggest using sessions as it seems you are using a user system, right?

PHP Code:
<?php
session_start
();
if(
$_SESSION['id'] != $userId || $_SESSION['user'] != $user){
session_destroy();
session_unset();
header('Location: login.php');
}
?>
<html>
<head>
...
</head>
<body>
<h1><?php echo $_SESSION['user'?></h1> //returns current username
</body>
</html>
Normo is offline  
Reply With Quote