Welcome! Log In Create A New Profile

Advanced

How to display the 3 link menu after a user logs in?

Posted by 37081888 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar How to display the 3 link menu after a user logs in?
April 23, 2013 06:29PM
Please assist me:

On the login.php page, we need to verify the username and password the user enters with the combo stored in the SQL database, correct? If the combo matches, a 3 link menu needs to be displayed as described in the TUT letter. I need some guidance/pointers on how to instruct PHP to display that menu after establishing a link with the DB (after the user enters the correct username/password and clicks the submit button)?

Is it a totally new page i.e. do I need to write a menu.php page or is it all on the login.php page?

Many thanks.
Re: How to display the 3 link menu after a user logs in?
April 23, 2013 07:08PM
If the login in is successful then it directs the user to a new page.Just design that page menu with html,thats that.
avatar Re: How to display the 3 link menu after a user logs in?
April 23, 2013 07:21PM
Mariuspienaar Wrote:
-------------------------------------------------------
> If the login in is successful then it directs the
> user to a new page.Just design that page menu with
> html,thats that.

Ah, I see. Thanks. It needs to verify the username and password entered with the database before linking to the menu, correct?
Re: How to display the 3 link menu after a user logs in?
April 24, 2013 11:41AM
Yes,only the 'manager can see that', which means you must be logged in
avatar Re: How to display the 3 link menu after a user logs in?
April 24, 2013 06:04PM
Ok. I'll try to code it as simply as possible and if anything goes wrong I'll report back here...
Re: How to display the 3 link menu after a user logs in?
April 25, 2013 08:28PM
Remember a session must be maintained to avoid ppl to jump loin page eg

session_start();
if (!isset($_SESSION["manager"])) {
header("location: login.php"winking smiley;
exit();
}
avatar
Mac
Re: How to display the 3 link menu after a user logs in?
April 26, 2013 07:53AM
Use the formatted code button to post code please...
avatar Re: How to display the 3 link menu after a user logs in?
May 06, 2013 04:12PM
38820501 Wrote:
-------------------------------------------------------
> Remember a session must be maintained to avoid ppl
> to jump loin page eg
>
> session_start();
> if (!isset($_SESSION["manager"])) {
> header("location: login.php"winking smiley;
> exit();
> }

Thanks for the input man. Does this code only need to be included in the login.php page or on every subsequent page thereafter?
avatar
Mac
Re: How to display the 3 link menu after a user logs in?
May 07, 2013 07:56AM
Use the formatted code button to post code PLEASE...
Sorry, only registered users may post in this forum.

Click here to login