Hi ,
I have a page refresh if a user is not logged in using sessions which works fine.
But when I submit data with a form is goes to the link for a non-logged in user to tell them to login.
I need the form once submitted to go to a different link completely
How can I do this ?
The form code is :
<form enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
The Page Refresh is :
if(empty($_POST['username']) && empty($_POST['password']))
{
?>
<meta http-equiv="refresh" content="0;index.php">
<?php
}
?>