Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Form Resubmission Reply To: Form Resubmission

#170751
chrisburton
Participant

Nevermind. I can just do this:

if($_POST){
    $_SESSION['POST'] = $_POST;
    header('Location: http://something.com');
    exit;
}

if(isset($_SESSION['POST'])) {
    $_POST = $_SESSION['POST'];
    unset($_SESSION['POST']);
}

if(!empty($_POST)) {
//do database stuff here