anyone can help me with this thank you very much in advance
This is my save.php file
<?php
include('db_connect.php');
if (isset($_POST['Set1']))
{
$Set1 = $_POST['Set1'];
mysql_query("INSERT INTO 'evaluation' (A1) VALUES ('$Set1')");
}
else if (isset($_POST['Set2']))
{
$Set2 = $_POST['Set2'];
mysql_query("INSERT INTO 'evaluation' (A2) VALUES ('$Set2')");
}
else if (isset($_POST['Set3']))
{
$Set3 = $_POST['Set3'];
mysql_query("INSERT INTO 'evaluation' (A3) VALUES ('$Set3')");
}
else if (isset($_POST['Set4']))
{
$Set4 = $_POST['Set4'];
mysql_query("INSERT INTO 'evaluation' (A4) VALUES ('$Set4')");
}
//the code continue until A30..
?>
this is my radiobutton file
<form action="save.php" method="post">
<h3 style="text-align:center;">B. Kerja Berpasukan</h3>
<table class="table table-condensed" style="width:100%">
<thead>
<tr>
<th>Bil.</th>
<th id="th01">Kriteria</th>
<th id="th02">Skala Kompetensi</th>
</tr>
</thead>
<tbody>
<tr class="danger">
<td>1.</td>
<td>Menunjukkan sifat-sifat bekerjasama seperti sedia
berkongsi maklumat dan kiraan yang telah
diperoleh/dilakukan</td>
<td>
<label class="radio-inline">
<input id="r1" type="radio" name="Set6" value="1"
required/>1
</label>
<label class="radio-inline">
<input id="r2" type="radio" name="Set6" value="2"
required/>2
</label>
<label class="radio-inline">
<input id="r3" type="radio" name="Set6" value="3"
required/>3
</label>
<label class="radio-inline">
<input id="r4" type="radio" name="Set6" value="4"
required/>4
</label>
<label class="radio-inline">
<input id="r5" type="radio" name="Set6" value="5"
required/>5
</label>
</td>
</tr>
<tr class="danger">
<td>2.</td>
<td>Menunjukkan kesanggupan melaksanakan tugas dan
arahan/permintaan pegawai</td>
<td>
<label class="radio-inline">
<input id="r1" type="radio" name="Set7" value="1"
required/>1
</label>
<label class="radio-inline">
<input id="r2" type="radio" name="Set7" value="2"
required/>2
</label>
<label class="radio-inline">
<input id="r3" type="radio" name="Set7" value="3"
required/>3
</label>
<label class="radio-inline">
<input id="r4" type="radio" name="Set7" value="4"
required/>4
</label>
<label class="radio-inline">
<input id="r5" type="radio" name="Set7" value="5"
required/>5
</label>
</td>
</tr>
<tr class="danger">
<td>3.</td>
<td>Sentiasa bertindak sebagai kumpulan seperti bersama
menyediakan/membantu
membuat tugasan/aktiviti</td>
<td>
<label class="radio-inline">
<input id="r1" type="radio" name="Set8" value="1"
required/>1
</label>
<label class="radio-inline">
<input id="r2" type="radio" name="Set8" value="2"
required/>2
</label>
<label class="radio-inline">
<input id="r3" type="radio" name="Set8" value="3"
required/>3
</label>
<label class="radio-inline">
<input id="r4" type="radio" name="Set8" value="4"
required/>4
</label>
<label class="radio-inline">
<input id="r5" type="radio" name="Set8" value="5"
required/>5
</label>
</td>
</tr>
</tbody>
</table>
my database name is 'SPPI' table to save the radiobutton value is'evaluation' the table has a field from A1 to A30