I'm writing a section of error handling code and I need to prompt the user if there is a conflict with the information that they inputed. The problem is that I need to return the option that the user selects back to function handling the error. Is there a way of doing this?
I brief the code is:
if (error){
conflict();
/ where conflict() is the function that prompts the user. I need this function (html form) to return $action back to this point/
switch($action)
{
case "option1":
......
break;
case "option2":
.......
break;
}
}
Any idea more than welcome
Mark