My code was working just fine until I added some Radio button in the code. Now when I click the Submit button, the page gets stuck and the Submit button remains clicked without the data getting inserted into the db. I wanted the clicked value to be stored. Can someone tell where I'm wrong.
<html>
<hr />
<form action="" method="post"><label>Client Name :</label>
<input id="name" name="Name" required="required" type="text" placeholder="Please Enter Name" /><label>Aadhar :</label>
<input id="Aadhar" name="Aadhar" type="text" placeholder="Please enter Aadhar Number" minlength=12 maxlength=12 />
<label>Mobile :</label>
<input id="Mobile" name="Mobile" required="required" type="text" placeholder="Please Enter Mobile Number" minlength=10 maxlength=10 />
<label>Email ID :</label>
<input id="Email" name="Email" type="text" placeholder="Please Enter Email ID" />
<label>PAN :</label>
<input id="PAN" name="PAN" type="text" placeholder="Please Enter PAN Number" minlength=10 maxlength=10 />
<label>Date of Birth :</label>
<input id="DOB" name="DOB" type="date" placeholder="Please Enter Date of Birth" />
<label>GST :</label>
<input id="GST" name="GST" type="text" placeholder="Please Enter Mobile GST Number" minlength=15 maxlength=15 />
<label>Type :</label>
<form name="Type" action ="" method ="post">
<input type="radio" name="Type" value="Individual"> Individual<br>
<input type="radio" name="Type" value="Firm"> Firm<br>
<input type="radio" name="Type" value="Company"> Company <br>
<input type="radio" name="Type" value="Trust"> Trust <br>
<input type="radio" name="Type" value="Others"> Others
</form>
<label>Company :</label>
<input id="Company" name="Company" type="text" placeholder="Please Enter Company" />
<label>Address :</label>
<input id="Address" name="Address" type="text" placeholder="Please Enter Address" />
<label>Description :</label>
<input id="Description" name="Description" type="text" placeholder="Please Enter Description" />
<input name="submit" type="submit" value=" Submit " />
<?php
$Name= $_POST['Name'];
$Aadhar = $_POST['Aadhar'];
$Mobile = $_POST['Mobile'];
$Email = $_POST['Email'];
$PAN = $_POST['PAN'];
$DOB = $_POST['DOB'];
$GST = $_POST['GST'];
$Type = $_POST['Type'];
$Company = $_POST['Company'];
$Address = $_POST['Address'];
$Description = $_POST['Description'];
global $wpdb;
$table_name = $wpdb->prefix . "clients";
$wpdb->insert('clients', [
'Name' => $_POST['Name'],
'Aadhar' => $_POST['Aadhar'],
'Mobile' => $_POST['Mobile'],
'Email' => $_POST['Email'],
'PAN' => $_POST['PAN'],
'DOB' => $_POST['DOB'],
'GST' => $_POST['GST'],
'Type' => $_POST['Type'],
'Company' => $_POST['Company'],
'Address' => $_POST['Address'],
'Description' => $_POST['Description']
],
['%s','%s', '%s','%s','%s','%s','%s','%s','%s','%s','%s']
);
?>
</html>
The page after I click "Submit" button:
</div>