I have problem that i want to replace a posed value of form with the correct name but not getting the proper text I am only getting the form values i.e. pbs and gs
<?php
include "connect.php";
$school=$_POST;
if ($idevice =="pbs")
{
$tb_school = "Public School";
}
else
{
$tb_device = $school
}
if ($school =="gs")
{
$tb_school = "Government School";
}
else
{
$tb_device = $school;
}
?>
<html>
<body>
<p>School: <?php print_r($tb_school); ?></p>
</body>
</html>