Hello I'm Pretty New To PHP I'm trying to Make an Script if the user selects an Radio Option It Will Redirect them to an site.
PHP:
if (isset($_POST["badge"]) ) {
if($_POST["badge"]==="Blue"){
header("Location: /form-error.shtm");
}
HTML:
<form action="badge.php" method="post">
<p>
<input class="with-gap" name="group1" type="radio" id="red" />
<label for="red">Red</label>
</p>
<p>
<input class="with-gap" name="group1" type="radio" id="blue" />
<label for="blue">Blue</label>
<div class="col offset-s7 s5">
<button class="btn waves-effect waves-light red darken-1" type="submit">Submit
<i class="mdi-content-send right white-text"></i>
</form>