I need to separate the questions to atleast up to unemployment and after clicking the button it will go to another page and it resume the user from answering the question.. Thanks in advance..

<?php
include('connection.php');

?>
<?php

    session_start();
    if(!isset($_SESSION['id']) || $_SESSION['privilege'] != 'user'){
       if(session_destroy()) // Destroying All Sessions
{
header("Location: index.php"); // Redirecting To Home Page
}
    }
?>
<!DOCTYPE html>
<html lang="en">

<head>

     <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Alumni Tracking system</title>
    <link rel="shortcut icon" href="img/aclogo2.png" type="image/x-icon" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
    <!-- Bootstrap Core CSS -->
    <link href="logincss/bootstrap2.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/business-casual.css" rel="stylesheet">
    <link href="css/login.css" rel="stylesheet">
    <link href="logincss/custom.css" rel="stylesheet">

    <script type="text/javascript" src="//code.jquery.com/jquery-1.9.1.js"></script>

    <link rel="stylesheet" type="text/css" href="/css/result-light.css">
    <!-- Website JS -->

    <script src="js/polyfiller.js"></script>
    <script src="js/jquery-1.8.2.min.js"></script>
    <script src="js/modernizr-custom.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600,700,100italic,300italic,400italic,600italic,700italic" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript">//<![CDATA[
$(window).load(function(){

$(document).ready(function(){
    $('select').on('change',function (e) {
        e.preventDefault(); // no need to use this line
        var target = $(this).val();
        var $target = $(target);

        $('html, body').animate({
            'scrollTop': $target.offset().top
        }, 1000, 'swing', function () {  // swing here will work if you include jquery-ui  without that it will not make a effect
            //window.location.hash = target;
        });
    }).change();
});
});//]]> 

</script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js" integrity="sha384-0s5Pv64cNZJieYFkXYOTId2HMA2Lfb6q2nAcx2n0RTLUnCAoTTsS0nKEO27XyKcY" crossorigin="anonymous"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js" integrity="sha384-ZoaMbDF+4LeFxg6WdScQ9nnR1QC2MIRxA1O9KWEXQwns1G8UNyIEZIQidzb0T1fo" crossorigin="anonymous"></script>
    <![endif]-->

</head>
<script type="text/javascript">//<![CDATA[
//start polyfilling
webshims.polyfill('forms');
$(function(){
    var enableDisable = function(){
        $('option', this).each(function(){
           $($.prop(this, 'value')).prop('disabled', !$.prop(this, 'selected')); 
        });
    };
    $('.choose').on('change', enableDisable).each(enableDisable);
});//]]> 
</script>
<script>
  if (window.parent && window.parent.parent){
    window.parent.parent.postMessage(["resultsFrame", {
      height: document.body.getBoundingClientRect().height,
      slug: "K8EPm"
    }], "*")
  }
</script>
<style>
table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}

   body{
    background-image: url("img/acbg.jpg"); 
    background-repeat: no-repeat;

  background-attachment: fixed;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
    }
  .table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
    border: none;
}
#content{
  display:none;
  }
</style>
<style type="text/css">
.form-row {
    padding: 5px 10px;
}
label {
    display: block;
    margin: 3px 0;
}
fieldset {
    transition: opacity 200ms;
}
fieldset[disabled] {
    opacity: 0.5;
}
[disabled] .ws-errormessage {
    color: #eee;
}

</style>

<body id="page-top" class="index">

    <!-- Navigation -->
    <nav class="navbar navbar-default">
        <div class="container">   
           <a href="http://angelicum.edu.ph/"><img src="img/aclogo.png"  height="200" class="img-responsive" id="logo" alt="Go to homepage" ></a>

        </div>
        <!-- /.container-fluid -->
    </nav>

    <!-- Header -->

        <div class="container">
             <div class="row">
             <div class="test">
               <div class="box">

                <div class="dropdown" style="float: right;">
                    <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"><div style="text-transform: uppercase;">Welcome : <span class="glyphicon glyphicon-user"></span>&nbsp;<?php echo $_SESSION['alumniname']; ?>

                   <span class="caret"></span></div></button>
                   <ul class="dropdown-menu">
                   <li><a href="logout.php"><span class="glyphicon glyphicon-off"></span>LogOut</a></li>

                   </ul>
                </div>

                    <!--<li class="one-admin">Welcome : <span class="glyphicon glyphicon-user"></span><?php echo $_SESSION['alumniname'] ?></li>
                    <li class="one-admin2"><a  href="logout.php"><span class="glyphicon glyphicon-off"></span>LogOut</a></li>-->

                               <hr>
                <form method="post" action="dataInput.php" onsubmit="return confirm('Are you sure you want to submit this form?');">

                <?php
                // SQL query
                $queryQuestions = "SELECT * FROM questions";
                $result = mysqli_query($conn, $queryQuestions);
                //Test Part I
                //Name
                echo "<h2>I. Respondents' Profile</h2>";
                echo '<input type="hidden" size="35" name="name" value="'.$_SESSION['alumniname'].'">';
                echo '<input type="hidden" size="35" name="year" value="'.$_SESSION['batch'].'">';
                echo '<input type="hidden" size="35" name="degree" value="'.$_SESSION['course'].'">';

                //Gender
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['question_id'] . '.)'."&nbsp;"; 
                echo $row['question'] .'<br>'; echo ' <input type="radio" name="sex" value="Male" required>'.$row['answer1'].'</input>' . "<br>" .
                '<input type="radio" name="sex" value="Female" required>'.$row['answer2'].'</input>' . "<br>"; 
                //Civil Status
                 $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                 echo $row['question_id'] . '.)'."&nbsp;"; 
                 echo $row['question'] .'<br>'; echo '<input type="radio" name="civil" value="Single" required>'.$row['answer1'].'</input>' . "<br>".
                 '<input type="radio" name="civil" value="Married" required>'.$row['answer2'].'</input>' ."<br>";

               ?>

                <?php
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['question_id'] . '.)'."&nbsp;";
                echo $row['question'] .'<br>'; echo'
                        <select name="employed" id="choose" class="choose user-success" required style="width:30%;">
                         <option value=""></option>
                        <option value="#employed">'.$row['answer1'].'</option>
                        <option value="#selfemployed">'.$row['answer2'].'</option>
                        <option value="#unemployed">'.$row['answer3'].'</option>
                        </select>'.'<br>';?>

                <?php
                echo "<h2>II. Employment Profile</h2>";
                echo'<fieldset id="employed" disabled="">';
                echo ' <h2>A. IF EMPLOYED </h2>';

                    echo'   <div class="form-row">';
                        //
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>';  echo '<input type="text"  name="nameorg">' . "<br>";
                        //
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>';
                             echo '<select name="typeorg" class="user-error" required="" aria-invalid="true">
                    <option value=""></option>
                    <option value="Private">'.$row['answer1'].' </option>
                    <option value="Public">'.$row['answer2'].'</option>
                    <option value="NGO">'.$row['answer3'].'</option>
                    <option value="Non-Profit">'.$row['answer4'].'</option>
                    </select>'."<br>";
                        //
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; 
                              echo '<select name="employtype" class="user-error" required="" aria-invalid="true"  style="width:30%;">
                    <option value=""></option>
                    <option value="Working Fulltime" >'.$row['answer1'].' </option>
                    <option value="Working Part-time">'.$row['answer2'].'</option>
                     <option value="Working Part-time but seeking fulltime work">'.$row['answer3'].'</option>
                      <option value="Working part-time but not seeking fulltime work">'.$row['answer4'].'</option>
                      <option value="Others">'.$row['answer5'].'</option>
                    </select>'."<br>"; 

                        //Occupational Classification:
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; 
                        echo '<select name="occupyclassify" class="user-error" required="" aria-invalid="true" style="width:50%;">
                    <option value=""></option>
                    <option value="Official of Government and Special-Interest Organizations">'.$row['answer1'].' </option>
                    <option value="Corporate Executive or Manager">'.$row['answer2'].'</option>
                     <option value="Managing Proprietor or Supervisor">'.$row['answer3'].'</option>
                      <option value="Technician or Associate Professional">'.$row['answer4'].'</option>
                      <option value="Clerk">'.$row['answer5'].'</option>
                      <option value="Service Worker or Shop and Market Sales Worker">'.$row['answer6'].'</option>
                      <option value="Farmer or Forestry Worker or Fisherman">'.$row['answer7'].'</option>
                      <option value="Trader or Related Worker">'.$row['answer8'].'</option>
                      <option value="Plant and Machine Operator and Assembler">'.$row['answer9'].'</option>
                      <option value="Laborer or Unskilled Worker">'.$row['answer10'].'</option>
                      <option value="Special Occupation">'.$row['answer11'].'</option>
                      <option value="Others">'.$row['answer12'].'</option>
                    </select>'."<br>"; 
                        //Is your current job related to the course you took up in Graduate School:
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="radio" name="jobgrad" value="Yes" class="user-error" required="" aria-invalid="true">'.$row['answer1'].'</input>' . "<br>".
                             '<input type="radio" name="jobgrad" value="No" class="user-error" required="" aria-invalid="true">'.$row['answer2'].'</input>' ."<br>";
                        //Number of years in the company:
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; 

                        echo '<select name="compyears" class="user-error" required="" aria-invalid="true">
                    <option value=""></option>
                    <option value="1-5">'.$row['answer1'].' </option>
                    <option value="6-10">'.$row['answer2'].'</option>
                     <option value="11-15">'.$row['answer3'].'</option>
                      <option value="16-20">'.$row['answer4'].'</option>
                      <option value="21-25">'.$row['answer5'].'</option>
                      <option value="26 above">'.$row['answer6'].'</option>

                    </select>'."<br>"; 
                        //Place of Work:
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="radio" name="placework" value="Local" class="user-error" required="" aria-invalid="true">'.$row['answer1'].'</input>' . "<br>".
                             '<input type="radio" name="placework" value="Abroad" class="user-error" required="" aria-invalid="true">'.$row['answer2'].'</input>' ."<br>";
                        //Is thi your first job after finishing your graduate degree?
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="radio" name="firstjob" value="Yes" class="user-error" required="" aria-invalid="true">'.$row['answer1'].'</input>' . "<br>".
                             '<input type="radio" name="firstjob" value="No" class="user-error" required="" aria-invalid="true">'.$row['answer2'].'</input>' ."<br>";
                        //state your reasons for staying on the job
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo ' <textarea rows="5" cols="35" name="jobreason"></textarea>'.'<br>';
                        //Designation
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="text" size="35" name="designation">' . "<br>";
                        //Department/Division
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="text" size="35" name="department">' . "<br>";
                        // Company Status
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="radio" name="companystat" value="Permanent" class="user-error" required="" aria-invalid="true">'.$row['answer1'].'</input>' . "<br>".
                             '<input type="radio" name="companystat" value="Contractual" class="user-error" required="" aria-invalid="true">'.$row['answer2'].'</input>' ."<br>" .'<input type="radio" name="companystat" value="Casual" class="user-error" required="" aria-invalid="true">'.$row['answer3'].'</input>'."<br>";
                        //Monthly Income Range employment
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; 
                        echo '<select name="monthlyrange" class="user-error" required="" aria-invalid="true">
                    <option value=""></option>
                    <option value="Below 10,000">'.$row['answer1'].' </option>
                    <option value="10,000-20,000">'.$row['answer2'].'</option>
                     <option value="21,000-30,000">'.$row['answer3'].'</option>
                      <option value="31,000-40,000">'.$row['answer4'].'</option>
                      <option value="41,000-50,000">'.$row['answer5'].'</option>
                      <option value="51,000-60,000">'.$row['answer6'].'</option>
                      <option value="61,000-70,000">'.$row['answer7'].'</option>
                      <option value="71,000 above">'.$row['answer8'].'</option>

                    </select>'."<br>"; 
                        //working while pursuing your degree at Angelicum College
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'."&nbsp;";
                        echo $row['question'] .'<br>'; echo '<input type="radio" name="pursuingdegree" value="Yes" class="user-error" required="" aria-invalid="true">'.$row['answer1'].'</input>' . "<br>".
                             '<input type="radio" name="pursuingdegree" value="No" class="user-error" required="" aria-invalid="true">'.$row['answer2'].'</input>' ."<br>";
                        //f not, how long did it take you to find a job
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>';  echo '<input type="number" name="longdegree">' . "<br>";
                        //reasons for any time gap between obtaining your degree and your first employment
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id2'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>'; echo '<textarea rows="5" cols="35" name="timegap"></textarea>'.'<br>';    
                    echo' </div>
                </fieldset>';?>

                  <?php

                    echo'  <div class="form-row">';
                    echo '<fieldset id="selfemployed">';
                        echo'<h2>B. IF SELF EMPLOYED </h2>';
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id3'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>'; echo '<textarea rows="5" cols="35" name="natureemploy" class="user-error" required="" aria-invalid="true"></textarea>'.'<br>';
                        //
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id3'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>';
                         echo '<select name="numyears" class="user-error" required="" aria-invalid="true">
                    <option value=""></option>
                    <option value="0-5">'.$row['answer1'].' </option>
                    <option value="6-10">'.$row['answer2'].'</option>
                     <option value="10-15">'.$row['answer3'].'</option>
                      <option value="16 above">'.$row['answer4'].'</option>

                    </select>'."<br>"; 
                        //
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id3'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>'; 

                         echo '<select name="monthrange" class="user-error" required="" aria-invalid="true">
                    <option value=""></option>
                    <option value="Below 10,000">'.$row['answer1'].' </option>
                    <option value="10,000-20,000">'.$row['answer2'].'</option>
                     <option value="21,000-30,000">'.$row['answer3'].'</option>
                      <option value="31,000-40,000">'.$row['answer4'].'</option>
                      <option value="41,000-50,000">'.$row['answer5'].'</option>
                      <option value="51,000-60,000">'.$row['answer6'].'</option>
                      <option value="61,000-70,000">'.$row['answer7'].'</option>
                      <option value="71,000 above">'.$row['answer8'].'</option>

                    </select>'."<br>"; 
                   echo' </div>
                </fieldset>';?>

                <?php

                    echo'  <div class="form-row">';
                     echo '<fieldset id="unemployed">';
                        echo '<h2>C. IF UNEMPLOYED </h2>';
                        $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                        echo $row['question_id3'] . '.)'. "&nbsp;";
                        echo $row['question'] .'<br>'; echo '<textarea rows="5" cols="35" name="whyunemploy" class="user-error" required="" aria-invalid="true"></textarea>'.'<br>';
                    echo ' </div>
                </fieldset>';?>

                <?php
                echo'<h3>II. Preparedness after Graduation</h3>';
                echo'<p>Directions: Carefully read the items below which describe your preparedness after the completion of your degree. Check the box that represents your answer using the following scale:</p>';

                    echo'<table style="width:100%;">';
                    echo'<tr>
                        <td><center>4</th>
                        <td style="width:40%;"><center>Very Highly</th> 
                        <td style="width:40%;"><center>Means that you are very prepared</th>

                    </tr>';
                     echo'<tr>
                        <td><center>3</th>
                        <td style="width:40%;"><center>Highly </th> 
                        <td style="width:40%;"><center>Means that you are prepared</th>

                    </tr>';
                    echo'<tr>
                        <td><center>2</th>
                        <td style="width:40%;"><center>Fairly</th> 
                        <td style="width:40%;"><center>Means that you are moderately prepared</th>

                    </tr>';
                     echo'<tr>
                        <td><center>1</th>
                        <td style="width:40%;"><center>Poorly</th> 
                        <td style="width:40%;"><center>Means that you are not prepared</th>

                    </tr>';

                    echo'</table><br><br>';

                    echo "<b>HOW WOULD YOU RATE THE CONTRIBUTION OF THE PROGRAM OF YOUR STUDY AT ANGELICUM COLLEGE TO YOUR PERSONAL AND PROFESSIONAL GROWTH IN TERMS OF THE FOLLOWING<b>";
                    echo '<div class="table-responsive">';
                    echo '<table style="width:100%;"> ';
                    echo '<tr>
                        <th><center>Item</th>
                        <th style="width:10%;"><center>4</th> 
                        <th style="width:10%;"><center>3</th>
                        <th style="width:10%;"><center>2</th>
                        <th style="width:10%;"><center>1</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>';
                    echo'<td><center><input type="radio" name="contribute1" value="4" required></input></td>';
                    echo'<td><center><input type="radio" name="contribute1" value="3" required></input></td>';
                    echo'<td><center><input type="radio" name="contribute1" value="2" required></input></td>';
                    echo'<td><center><input type="radio" name="contribute1" value="1" required></input></td>';
                    echo'</tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute2" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute2" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute2" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute2" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute3" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute3" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute3" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute3" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute4" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute4" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute4" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute4" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute5" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute5" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute5" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute5" value="1" required></input></td>
                    </tr>';

                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute7" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute7" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute7" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute7" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute8" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute8" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute8" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute8" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute9" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute9" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute9" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute9" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute10" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute10" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute10" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute10" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo '<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute11" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute11" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute11" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute11" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute12" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute12" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute12" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute12" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo' <tr>
                        <td>&nbsp<b>'.$row['question_id4'] . '.)'. "&nbsp;".$row['question'].'</b></td>
                        <td><center><input type="radio" name="contribute13" value="4" required></input></td>
                        <td><center><input type="radio" name="contribute13" value="3" required></input></td>
                        <td><center><input type="radio" name="contribute13" value="2" required></input></td>
                        <td><center><input type="radio" name="contribute13" value="1" required></input></td>
                    </tr>';
                    echo'</table></div><br><br>';

                    echo "<b>HOW WOULD YOU RATE THE DEGREE PROGRAM YOU FINISHED AT ANGELICUM COLLEGE IN TERMS OF:<b>";
                    echo'<table style="width:100%;">';
                    echo'<tr>
                        <th><center>Item</th>
                        <th style="width:10%;"><center>4</th> 
                        <th style="width:10%;"><center>3</th>
                        <th style="width:10%;"><center>2</th>
                        <th style="width:10%;"><center>1</th>
                    </tr>';
                    echo'<tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio"  name="degreerate1" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate1" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate1" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate1" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate2" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate2" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate2" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate2" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate3" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate3" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate3" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate3" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate4" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate4" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate4" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate4" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate5" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate5" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate5" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate5" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate6" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate6" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate6" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate6" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate7" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate7" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate7" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate7" value="1" required></input></td>
                    </tr>';
                    $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                    echo'<tr>
                        <td>&nbsp<b>'.$row['question_id5'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="degreerate8" value="4" required></input></td>
                        <td><center><input type="radio" name="degreerate8" value="3" required></input></td>
                        <td><center><input type="radio" name="degreerate8" value="2" required></input></td>
                        <td><center><input type="radio" name="degreerate8" value="1" required></input></td>
                    </tr>';
                    echo'</table><br><br>';
                ?>
                <?php
                echo '<hr>';
                //echo '<center><p><font size="4"><a id="toggle" style="cursor: pointer;">FEEDBACK</a></p></font></center>';
                //echo '<div id="content">';

                echo '<center><h2><b>FEEDBACK</b></h2></center>';
                echo'<table style="width:100%;">';
                    echo'<tr>
                        <th><center>SCALE</th>
                        <th style="width:40%;"><center>SCALE RANGE</th> 
                        <th style="width:40%;"><center>VERBAL INTERPRETATIONS</th>

                    </tr>';
                    echo'<tr>
                        <td><center>3.5-4.00</th>
                        <td style="width:40%;"><center>4</th> 
                        <td style="width:40%;"><center>Strongly Agree (SA)</th>

                    </tr>';
                     echo'<tr>
                        <td><center>2.5-3.49</th>
                        <td style="width:40%;"><center>3</th> 
                        <td style="width:40%;"><center>Moderately Agree (MA)</th>

                    </tr>';
                    echo'<tr>
                        <td><center>1.5-2.49</th>
                        <td style="width:40%;"><center>2</th> 
                        <td style="width:40%;"><center>Moderately Disagree (MD)</th>

                    </tr>';
                     echo'<tr>
                        <td><center>1.0-1.49</th>
                        <td style="width:40%;"><center>1</th> 
                        <td style="width:40%;"><center>Strongly Disagree (SD)</th>

                    </tr>';

                    echo'</table><br><br>';

                echo '<h3>A. Content</h3>';
                echo'<table style="width:100%;">';
                    echo'<tr>
                        <th><center>Item</th>
                        <th style="width:10%;"><center>(SA)</th> 
                        <th style="width:10%;"><center>(MA)</th>
                        <th style="width:10%;"><center>(MD)</th>
                        <th style="width:10%;"><center>(SD)</th>

                    </tr>';
                    echo'<tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>';
                $queryQuestions = "SELECT * FROM feedback";
                $result = mysqli_query($conn, $queryQuestions);
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="ensures" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="ensures" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="ensures" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="ensures" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="appropriate" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="appropriate" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="appropriate" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="appropriate" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="useful" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="useful" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="useful" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="useful" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="consistent" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="consistent" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="consistent" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="consistent" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                      <td><center><input type="radio" name="correctness" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="correctness" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="correctness" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="correctness" value="Strongly Disagree" required></input></td>

                    </tr>';

                    echo'</table><br><br>';
                 echo'<table style="width:100%;">';

                 echo'<tr>
                        <th><center>Item</th>
                        <th style="width:10%;"><center>(SA)</th> 
                        <th style="width:10%;"><center>(MA)</th>
                        <th style="width:10%;"><center>(MD)</th>
                        <th style="width:10%;"><center>(SD)</th>

                    </tr>';
                    echo'<tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>';

                echo '<h3>B. Interactivity</h3>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id2'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                       <td><center><input type="radio" name="mechanism" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="mechanism" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="mechanism" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="mechanism" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id2'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                     <td><center><input type="radio" name="style" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="style" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="style" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="style" value="Strongly Disagree" required></input></td>

                    </tr>';

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id2'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                          <td><center><input type="radio" name="navigating" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="navigating" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="navigating" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="navigating" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id2'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                        <td><center><input type="radio" name="engage" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="engage" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="engage" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="engage" value="Strongly Disagree" required></input></td>

                    </tr>';
                      echo'</table><br><br>';
                 echo'<table style="width:100%;">';

                 echo'<tr>
                        <th><center>Item</th>
                        <th style="width:10%;"><center>(SA)</th> 
                        <th style="width:10%;"><center>(MA)</th>
                        <th style="width:10%;"><center>(MD)</th>
                        <th style="width:10%;"><center>(SD)</th>

                    </tr>';
                    echo'<tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>';
                echo '<h3>C. Accessibility</h3>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id3'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                         <td><center><input type="radio" name="loading" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="loading" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="loading" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="loading" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id3'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                       <td><center><input type="radio" name="browsers" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="browsers" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="browsers" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="browsers" value="Strongly Disagree" required></input></td>

                    </tr>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo'<tr>
                        <td>&nbsp<b>'.$row['id3'] . '.)'. "&nbsp;".$row['question'].'<b></td>
                       <td><center><input type="radio" name="find" value="Strongly Agree" required></input></td>
                        <td><center><input type="radio" name="find" value="Moderately Agree" required></input></td>
                        <td><center><input type="radio" name="find" value="Moderately Disagree" required></input></td>
                        <td><center><input type="radio" name="find" value="Strongly Disagree" required></input></td>

                    </tr>';

                echo'</table> <br>';
                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>';   echo ' <input type="radio" name="firsttime" value="Yes" required>'.$row['choice1'].'</input>' . "<br>" .
                '<input type="radio" name="firsttime" value="No" required>'.$row['choice2'].'</input>' . "<br>";

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>'; 

                echo '<select name="howeasy" required>
                 <option value=""></option>
                    <option value="Very Difficult">'.$row['choice1'].' </option>
                    <option value="Moderately Difficult">'.$row['choice2'].'</option>
                     <option value="Neutral">'.$row['choice3'].'</option>
                      <option value="Moderately Easy">'.$row['choice4'].'</option>
                      <option value="Very Easy">'.$row['choice5'].'</option>

                    </select>'."<br>"; 

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>'; 

                echo '<select name="learnnavigation" required>
                    <option value=""></option>
                    <option value="Very Difficult">'.$row['choice1'].' </option>
                    <option value="Moderately Difficult">'.$row['choice2'].'</option>
                     <option value="Neutral">'.$row['choice3'].'</option>
                      <option value="Moderately Easy">'.$row['choice4'].'</option>
                      <option value="Very Easy">'.$row['choice5'].'</option>

                    </select>'."<br>";

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>';   echo ' <input type="radio" name="feellost" value="Yes" required>'.$row['choice1'].'</input>' . "<br>" .
                '<input type="radio" name="feellost" value="No" required>'.$row['choice2'].'</input>' . "<br>";

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>'; 

                 echo '<select name="makeeasy" required>
                    <option value=""></option>
                    <option value="Very Difficult">'.$row['choice1'].' </option>
                    <option value="Moderately Difficult">'.$row['choice2'].'</option>
                     <option value="Neutral">'.$row['choice3'].'</option>
                      <option value="Moderately Easy">'.$row['choice4'].'</option>
                      <option value="Very Easy">'.$row['choice5'].'</option>

                    </select>'."<br>";

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>'; 

                  echo '<select name="mistakeserrors" required>
                    <option value=""></option>
                    <option value="Very Difficult">'.$row['choice1'].' </option>
                    <option value="Moderately Difficult">'.$row['choice2'].'</option>
                     <option value="Neutral">'.$row['choice3'].'</option>
                      <option value="Moderately Easy">'.$row['choice4'].'</option>
                      <option value="Very Easy">'.$row['choice5'].'</option>

                    </select>'."<br>";

                  $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>';   echo ' <input type="radio" name="attractive" value="Yes" required>'.$row['choice1'].'</input>' . "<br>" .
                '<input type="radio" name="attractive" value="No" required>'.$row['choice2'].'</input>' . "<br>";

                $row=mysqli_fetch_array($result,MYSQLI_ASSOC);
                echo $row['id4'] . '.)'. "&nbsp;";
                echo $row['question'] .'<br>';

                  echo '<select name="howsatisfied" required>
                    <option value=""></option>
                    <option value="Very Satisfied">'.$row['choice1'].' </option>
                    <option value="Moderately Satisfied">'.$row['choice2'].'</option>
                     <option value="Neutral">'.$row['choice3'].'</option>
                      <option value="Moderately Unsatisfied">'.$row['choice4'].'</option>
                      <option value="Very Unsatisfied">'.$row['choice5'].'</option>

   
Member Avatar for diafol

1000 lines of code. You're kidding right? Why all the CSS is it relevant? Your mishmash of php and html is going to be nigh-on impossible to maintain. Your HTML douments should contain the lightest touch of PHP. echoing large sections of PHP is a PITA.

commented: OP should add 24 more lines to make it even. +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.