It was a complete hack, but necessary and allowed him to work with Safari. So at the end of the page, I pushed all the message data into a session
$_SESSION['post'] = $_POST
Then I used jQuery to update session variables. Then use location.reload (); to reload the page as soon as I finished making the changes, and as soon as the page loaded, I simply moved all the session data to the message.
$_POST = ยฃ_SESSION['post'];
The result is the same as if the form was submitted.
source share