ex.
switch($_GET['change']){
case 'password':
echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<p>Current password:<br>
<input name="current" type="password"></p>
<p>New password:<br>
<input name="new" type="password"></p>
<p>Confirm new password:<br>
<input name="confirm" type="password"></p>
<p><input type="submit" value="Change Password" name="changepassword"></p>
</form>
';
break;
case 'email':
echo '<p>
WARNING! - By changing your email address you will have to re-validate. Make sure you email address is 100% correct.</p>
<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<p>Current email:<br>
<input name="current" type="text"></p>
<p>New email:<br>
<input name="new" type="text"></p>
<p>Confirm new email:<br>
<input name="confirm" type="text"></p>
<p><input type="submit" value="Change Email" name="changeemail"></p>
</form>
';
break;
default:
echo '<p>Welcome to the super secret members only control panel!</p>';
}
?>
the thing is i want to keep that switch($_GET['change']){ but i want to make some new links that deal with switch($_GET['whatever']){ how do i do that? cuz when i do try it by adding some code of the same thing after the last bracket "}" it works but gives me that default echo on the same page..
thx guys
