I have come across quite the problem when making my own framework. I have found some other questions that come close to what I'm asking, but not quite.
This is what I am attempting:
It seems simple, but I am trying to:
Am I asking too much or is there a way to do this? Is there something I would need to compromise on to achieve this? If not, then I guess I will go with sessions and redirection.
i am not sure i understood well, do you need to process $_POST on the same page, which holds the form and avoid re-sending the data?
if so, u need to reload page, without POST after proceeding your form ... i.e.
if(isset($_POST["YOUR_FORM_FIELD"])){
header("Location: ".$_SERVER["HTTP_REFERER"]);
exit();
}
BUT - reloading is in conflict with your request to not use _SESSION, or _GET nad send a message to be displayed. i did not find a way how to pass a variable through HTTP headers - which seems to me like the only way ...
anyway i do recommend to consider using _SESSION ....