07-23-2009, 08:56 AM
|
#2 (permalink)
|
|
The Contributor
Join Date: Oct 2008
Location: UK
Posts: 30
Thanks: 0
|
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>
|
|
|
|