0

I keep having some trouble with a bit of coding. I've tried everything to fix it. All the tips on this forum, everything. I was wondering if someone could lend me a hand.

I'll leave you the offending piece of coding here to see if anyone might want to take a crack at it.

    }
    fwrite($handle, "\r\n");
    fwrite($handle,"\t\t\t\t\t\t
    ==============================
    ========================");
    fclose($handle);
    echo "Invalid E-mail/Password <br>";
    echo "Try Again";
    header("Redirect:2;url=index.html");
    ?>

I'm new at coding as you can probably guess so any help would be much appreciated.

1 Answers1

0

2 Point Based Comment in PHP Manual:

Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP.

PHP Manual

<?php
header("refresh:2;url=index.html");

echo "Moved in 2 second";
sukalogika
  • 603
  • 4
  • 11
  • 18