I have this project i am working on for myself and it involves using multiple radio buttions that have 3 radio buttion selections,which are to-do,completed and not-recquired only problem is when i go to view my radio buttions online even thoguh i put my data from database in an array using the id Tasks i get all entries being selected i mean for example i have 3 entries
which are
To-Do Completed Not Required Gathering of information related to site content
To-Do Completed Not Required Website Domain Registered or have the name server records updated
To-Do Completed Not Required Client Answered Questionnaire Provided.
To-Do Completed Not Required lient Development Site Setup.
but if i select on gather information to site content and select not required and then go to next line to get domain register or name servers update the selection from the above gets deleted and erased and i want multiple rows to be different so as i go through them i dont have to worry about one row being removed when i select the next one.
if(isset($_POST['save']))
{
$TaskArr=$_POST['Task'];
print_r($_POST);
$newvalue = implode(",",$TaskArr);
echo $newvalue;
}
include("dbconnect.php");
$cQuery="SELECT * FROM Tasks WHERE TaskGroup='1'";
$rs=mysqli_query($con,$cQuery);
if(!$rs)
{
echo "Error:".mysqli_error($con);
}
else
{
$count=$rs->num_rows;
if($count>0)
{
?><form method="post" action=""><div id="Workflow"><?
while($data=mysqli_fetch_array($rs))
{
?>
<div class="WorkflowRow">
<div class="WorkFlowToDo">
<label>
<div class="WorkFlowToDoTitle"><input type="radio" name="Task[]" value="To-Do" />To-Do</div></label>
</div>
<div class="WorkFlowCompleted">
<div class="WorkFlowCompletedTitle">
<label>
<input type="radio" name="Task[]" value="Completed" />Completed</div></label>
</div>
<div class="WorkFlowNotRequired">
<div class="WorkFlowNotRequiredTitle">
<label>
<input type="radio" name="Task[]" value="Not Required" />Not Required</div></label>
</div>
<div class="WorkFlowDesc"><? echo $data['TaskDesc'];?></div>
</div>
<?
}
?>
<input type="submit" name="save" value="Save Tasks" />
</div></form>
<?
}
}
am i doing somthing wrong to get that problem? or is there somthing missing that i should of added?