sum Submited  Radio Buttons value in same or another page?
<p>I am new in PHP and I am working on survey and database. I have two tables: one contains the questions and the other contains the answers. These 2 tables have the following attributes:</p>

<pre><code>     _________________           _________________
    | TABLE-QUESTION  |         | TABLE-ANSWER    |
    |_________________|         |_________________|
    |  id             |         |  id             |
    |  survey_name    |         |  qid            |
    |  question       |         |  answer         |
    |  status         |         |  answer_value   |
    |_________________|         |_________________|
</code></pre>

<p>Each answer has multiple value and select with radio button</p>

<pre><code> &lt;?php
      $newsurvey=$db-&gt;get_results("SELECT * FROM question where status='1' order by `id` ");
      if($newsurvey)
      {
           foreach($newsurvey as $survey1)
           {
 ?&gt;         
                &lt;h3&gt;&lt;?php echo $survey1-&gt;question?&gt;&lt;/h3&gt;

                &lt;?php
                     $slider=$db-&gt;get_results("SELECT * FROM answer where qid='$survey1-&gt;id' ");
                     if($slider)
                     {
                          foreach($slider as $answer1)
                          {
                ?&gt;
                               &lt;div class="entry"&gt;
                                    &lt;input type="radio" name='$survey1-&gt;id' value="
                                         &lt;?php echo $answer1-&gt;answer_value?&gt;"/&gt;
                                    &lt;?php echo $answer1-&gt;answer?&gt;
                                &lt;/div&gt;
                     &lt;?php
                          }
                     }
                     ?&gt;
            &lt;?php
                 }
           }
           ?&gt;

           &lt;input type="Submit" value="Submit"&gt;
</code></pre>

<p>What I want is to sum and store all submitted radio buttons value in another Page.</p>

<p>How to do this?</p>
