I am creating a website and I am creating a form in it. In this form, I wanted to make it redirect to a URL (www.google.pt, for example) only if a keyword is written in the form when submitted (for example, "google"). Can anyone help me please? Here is the HTML code I've written to create the form:
<form action="/action_page.php" method="post">
<input type="text">
<br><br>
<button type="submit">SUBMETER</button>
</form>