Hi
I'm making (well trying) to create a profile page for my user area. I have code to check whether the user is logged in, if they are they can proceed, if not they are chucked off...
That works fine but i am trying to use a switch statement to display different functions within the page (for example, password change-email-other details etc). The page loads fine but when i try to click my link to change the displayed content it does nothing. Here's my code:
check user logged in code....
function updatedetails () {
//a html form
}
function start() {
//welcome message
}
switch ($op) {
case "updatedetails":
updatedetails();
break;
default:
start();
break;
}
my link points to ./index.php?page=profile&op=updatedetails
Whats wrong with it?