I am creating sign up student form in my web using html and php:
<form id = "formFormat" action ="" method "post" >
<input style = 'margin-bottom:1vh;' type = "text" name = "tb_studentid" placeholder = "Student ID" autocomplete="off" required/><br/>
<input style = 'margin-bottom:1vh;' type = "text" name = "tb_firstname" placeholder = "First Name" autocomplete="off" required/><br/>
<input style = 'margin-bottom:1vh;' type = "text" name = "tb_lastname" placeholder = "Last Name" autocomplete="off" required/><br/>
<input style = 'margin-bottom:1vh;' type = "text" name = "tb_course" placeholder = "Course" autocomplete="off" required/><br/>
<select style = 'margin-bottom:1vh;' name = "tb_year" required/ >
<option value = "" disabled selected>Year</option>
<option value = "1">1st</option>
<option value = "2">2nd</option>
<option value = "3">3rd</option>
<option value = "4">4th</option>
<option value = "ex">Extended</option>
</select><br/>
<select style = 'margin-bottom:1vh;' name = "tb_gender" required/ >
<option value = "" disabled selected>Gender</option>
<option value = "Male">Male</option>
<option value = "Female">Female</option>
</select><br/>
<input type = "password" name = "tb_password" placeholder = "Password" required/><br/><br/>
<input type = "submit" name = "btn_create" value = "Create Account"><br/><br/>
</form>
But when I press submit, it won't reload my page nor connect to my if(isset9($_POST['btn_create'])) code above it. It just somewhat gives me this url:
The URL shows the inputs of the user insted of redirecting the page
Aucun commentaire:
Enregistrer un commentaire