Issue
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" />
Solution
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/');
}
Answered By - clearshot66
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.