I'm new to coding in HTML. After hours of searching the internet for a way to do this, I failed and so I'm here. I want to redirect user to another page ONLY AFER USER FILLED ALL INPUTS IN THE FORM
but here if user will click submit it will redirect to next page.
<form action="home.php" method="post">
<div>
<input type=text name="username">
<label>Email or phone number</label>
</div>
<div>
<input type=text name="username">
<label>Phone</label>
</div>
<button type=submit name="submit">Sign In</button>