First of all, you say I would like to avoid appending get parameters to the url
. If that's your only concern, you can use jQuery.post(), no query parameters whatsoever.
But if you explained it correctly, it's just a normal form posted to a normal php script. Isn' t it? In that case, just echo out the success/failure info:
$succes = do_something($_POST['my_posted_var']);
if($success) {
echo 'Yeah! It worked!';
} else {
echo 'This is disappointing...';
}
Or redirect the user to your thank you page.
header('Location: '. thanks.php);
EDIT Ok got it (see comment). In that case, use sessions. You can transfer data between requests without juggling with parameters of some sort. Please read this. Summarized you could do something like below:
=execution_script.php=
session_start();
// do your stuff
$_SESSION['status'] = 'succes'; // or failure for that matter
header('Location: status_view.php');
.
=status_view.php=
session_start();
echo 'Status: ' . $_SESSION['status'];