Putting restricted access to a form?

osnysantos 25 Aug, 2008
Putting restricted access to a form?
Example: Accessing the page of the form and redirects to a page of Login if he is not signed.
GreyHead 25 Aug, 2008
Hi osnysantos,

Put a code snippet at the beginning of your form html
<?php
$my = JFactory::getuser(); 
if ( $my->id == 0 ) {
  $mainframe->redirect("index.php");
}
?>

Bob
This topic is locked and no more replies can be posted.