I understand, your wanting to validate the outcome as the user enters the result and then you'll save it on submit.
But what we'retrying to explain is that you really don't need to, you're over complicating the process and increasing the number of requests required for something that can be done in a single POST.
Yea I probably am over complicating things! lol I initially wanted to add a line into my single POST where I could almost pause the code execution and let the use click ok or cancel.
So the user clicks submit, it returns what the outcome is and then prompts the user to continue or cancel. If ok or continue is clicked then the rest of the code would be executed and the data submitted to the database.
If I could add something like the following into the php code to prompt the user would be perfect:
Something like that jester mentioned:
Code:
confirm('You sure, mate?')