Skip to content Skip to sidebar Skip to footer

Blank Page On Submit Button

I have some troubles with my html page. I want it to reload after pressing the submit button. I tried reloading it with javascript but it keeps on giving me a white page (after sav

Solution 1:

I think you are missing one condition here

you have only

if($ret === false) {
    die('There was an error writing this file');
}

try to add the else and see

if($ret === false) {
    die('There was an error writing this file');
} else {
  header('Location: ' . $_SERVER['HTTP_REFERER']);
}

Post a Comment for "Blank Page On Submit Button"