I know how to accomplish this in PHP. Is is possible to redirect using only HTML, After form get submitted?
<form action="login.php" method="POST" />
I know how to accomplish this in PHP. Is is possible to redirect using only HTML, After form get submitted?
<form action="login.php" method="POST" />
 
    
    On submit(you have a submit button named submit) and hopefully named form input's such as <input type='text' name='usernameFromForm' />
fire the header function
if(isset($_POST['submit'])){
    $_POST['usernameFromForm'];
    // Do something with this variable, put into database, etc
    // Redirect
    header('Location: http://www.example.com/');
}
 
    
    After you preform some tasks with the $_POST data in your login.php page, use the PHP header() function to determine the location to go to. Use header() before any HTML is printed.
