Resolved Change Reading List delete resumit form issue when refreshing page.

Discussion in 'Suggestions & Bug Reports' started by YaFedImYaEatIm, Oct 7, 2016.

  1. YaFedImYaEatIm

    YaFedImYaEatIm Active Member

    Joined:
    Feb 8, 2016
    Messages:
    15
    Likes Received:
    3
    Reading List:
    Link
    I would like to address a minor problem where when we delete from our reading list and try to refresh the page it asks us if we would like to submit the form again. It would be nice this could be changed to the post redirect get method so we don't get this complication.
     
  2. YaFedImYaEatIm

    YaFedImYaEatIm Active Member

    Joined:
    Feb 8, 2016
    Messages:
    15
    Likes Received:
    3
    Reading List:
    Link
    An Example a login function with this implementation would like:

    PHP:
    if (isset($_POST['login'])){
        if (
    $_POST['login'] == "Log In"){
            
    $jsonLogin file_get_contents("Login/API");
            
    $_SESSION['User'] = json_decode($jsonLogintrue);
            if (
    $_SESSION['User'] == []){
                unset(
    $_SESSION['User']);
            }
            
    header("Location: ".$_SERVER['REQUEST_URI']);
            exit();
        }
    }
    I couldn't attach this as a pastebin file as the forum marks it as spam.