View Single Post
Old 06-24-2008, 11:25 AM   #2 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

Just create a function (like isLoggedIn()) returning true or false. In that function check the session and maybe some more proof to be 100% sertain the user is logged in.

Something like this will be the result:

PHP Code:
<?php

if(isLoggedIn()) {

   
// Parse form

} else {

   echo 
'Not logged in';

}

?>
How this helps a bit :)
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote