i want to export two different type of xlsx file
based on radio button .
$sel = $_POST['sel'];
echo $sel;
if(isset($_POST['search'])){
if($sel == 'board')
{
header('Location: export_data1.php?
num='.$_POST['staff']);
die();
}
else
{
header('Location: export_data2.php?
num='.$_POST['desg']);
die();
}
}
how to call another php file based on my radio button.Is there any other alternate way to call php file with passing arguments?