PHP: using $_GET to retrieve value from javascript : <p>I'm making travel package website and I want to retrieve data using either GET, POST , REQUEST in php. but I get an error message saying 
"Array ( ) no
Notice: Undefined index:"</p>

<hr>

<p>Javascript function: </p>

<p>calculate total by simply multiplying the values from "package" and "# of person" </p>

<hr>

<p>below is my code</p>

<pre><code>&lt;script type="text/javascript"&gt;

function totalPrice(){

document.getElementById("total").value= "CAD "+ 
(document.getElementById("package").value * document.getElementById("person").value);}   
&lt;/script&gt;

&lt;!-- package selection --&gt;

&lt;form action="test.php" method="get"&gt;


&lt;select id="package" onchange="totalPrice();" &gt;
      &lt;option value="2300"&gt;Wild West (Banff, Jasper)&lt;/option&gt;
      &lt;option value="3300"&gt;East Coast(St.Johns)&lt;/option&gt;
      &lt;option value="1300"&gt;Winery Tour(Kelowna, Penticton)&lt;/option&gt;
      &lt;option value="2600"&gt;Northern Light(Yellowknife)&lt;/option&gt;
 &lt;/select&gt;

 &lt;select id="person" onchange="totalPrice();"&gt;
          &lt;option value="1"&gt;1 person&lt;/option&gt;
          &lt;option value="2"&gt;2 persons&lt;/option&gt;
          &lt;option value="3"&gt;3 persons&lt;/option&gt;
          &lt;option value="4"&gt;4 persons&lt;/option&gt;
          &lt;option value="5"&gt;5 persons&lt;/option&gt;
          &lt;option value="6"&gt;6 persons&lt;/option&gt;
          &lt;option value="7"&gt;7 persons&lt;/option&gt;
          &lt;option value="8"&gt;8 persons&lt;/option&gt;

  &lt;/select&gt;
  &lt;input type="submit"&gt;

  &lt;/form&gt;
  &lt;!-- total Amount --&gt;
  &lt;label class="form" &gt;Total Amount&lt;/label&gt;
  &lt;input size =40 type="text" name="total" id="total" disabled&gt;
</code></pre>

<p>"test.php"</p>

<pre><code>&lt;h1&gt;payment total&lt;/h1&gt;

&lt;?php

print_r($_GET);
if(!isset($_GET['total'])){
  echo "no";
}
echo $_GET['total'];
 ?&gt;
</code></pre>
