i want send two parameters to function in another PHP file, but operator must twice click on submit and checkbox!!!??????? this is my code to take data
<div class="question">
<?php
$data=array();
$fielddata=array();
$myconnection=mysql_connect("localhost","goftaman_solar","Setalna@2718");
mysql_set_charset('utf8',$myconnection);
$db=mysql_select_db('goftaman_edu');
$resultquestion="SELECT * FROM examination WHERE operator=''";
$showresultquestion=mysql_query($resultquestion,$myconnection);
while($row=mysql_fetch_object($showresultquestion)){
    $data[]=$row;
}
foreach($data as $itmes){ 
?>
<?php
    echo $itmes->question;
?>
    <form name="sendanswer" method="POST">
    <ul>
    <input type="hidden" id="idd" name="idd" value="<?php echo $itmes->question?>"></input>
    <li><input type="checkBox" id="answer" name="answer" value="<?php echo $itmes->answer1?>"><?php echo $itmes->answer1?></input></li>
    <li><input type="checkBox" id="answer" name="answer" value="<?php echo $itmes->answer2?>"/><?php echo $itmes->answer2?></input></li>
    <li><input type="checkBox" id="answer" name="answer" value="<?php echo $itmes->answer3 ?>"/><?php echo $itmes->answer3?></input></li>
    <li><input type="checkBox" id="answer" name="answer" value="<?php echo $itmes->answer4 ?>"/><?php echo $itmes->answer4?></input></li>
    </ul>
    <input type="submit" name="submit" value="ارسال پاسخ"/>
<?php
    $sendques="";
    $sendques=$_POST['idd'];
    $sendanswer="";
    $sendanswer=$_POST['answer'];
    funcsendexam($sendanswer,$sendques);
?>
    </form>
this my code in other PHP file which must take parameter and save in database:
<?php
function funcsendexam($sendexam,$sendques){
    $conn=mysql_connect("localhost","goftaman_solar","Setalna@2718");
    mysql_set_charset('utf8',$conn);
    mysql_select_db('goftaman_edu');
    $saveanswerquery="UPDATE examination 
                        SET operator='".$sendexam."'
                      WHERE question='".$sendques."'";
    mysql_query($saveanswerquery,$conn);
    mysql_close($conn);
}
?>
 
    