I asked a simialr question earlier about using jquery and hashtags but what I really need to do is after a successful login redirect the user to the home page (home.php) Ideally I want to load my header with my menu only once and then update my main div tag with the contents of home. This will let me load the menu bar just once and not after every page load. I’m currently calling the home page like so:
if(isset($success) {
header('Location: menu.php?home');
exit();
}
Is it possible to hide the menu.php portion of the URL to the end user or is there a better way?
Thanks
No.
You can use a mod_rewrite rule to rewrite /home to /menu.php?home.