Is it possible to call up a case statement in the same page? For example, if you have 3 cases and everything you want to occur is in each case, and you are currently in case2, a user could select 'submit' to push on to case 3, or 'cancel' to go back to case 1.
How does one write this up?
Here's what I've started.
case "jobsdelete":
?>
<!-- JOBS DELETION PROMPT -->
<B>Are you SURE you want to delete this job?<BR>It CANNNOT be undone!</B>
<BR>
<form name="update" method="post" action="index.php?goto=jobsdelete2&id=<? echo $_GET[id]; ?>">
<input type="hidden" name="id" value="<? echo $_GET[id]; ?>">
<input type="submit" name="Submit" value="Continue">
<input type="submit" name="Cancel" value="Cancel">
</form>
<?
break;
case "jobsdelete2":
if ($Submit) {
echo "Deleted";
}
if ($Cancel) {
case(jobslisting);
}
break;
... whereas CANCEL should take you back to a totally different case.
HEADER redirection did not work.