checkout page choose a delivery address
<p>I have a checkout page where user's address are listed. Its in this format:</p>

<pre><code>&lt;form action="confirm.php" method="post" name="checkout"&gt;
    &lt;?php do { ?&gt;
      &lt;div class="panel panel-default" style="padding:0"&gt;
        &lt;div class="panel-heading"&gt;
          &lt;h4 class="panel-title"&gt;
            &lt;a data-toggle="collapse" data-parent="#accordion" href="#collapse&lt;?php echo $row_Address['ID'] ?&gt;"&gt;
              &lt;?php echo $row_Address['FirstName'] ?&gt;  &lt;?php echo $row_Address['LastName'] ?&gt;,  &lt;?php echo $row_Address['City'] ?&gt;  &lt;?php echo $row_Address['Pincode'] ?&gt;&lt;/a&gt;
            &lt;/h4&gt;
          &lt;/div&gt;
        &lt;div id="collapse&lt;?php echo $row_Address['ID'] ?&gt;" class="panel-collapse collapse"&gt;
          &lt;div class="panel-body"&gt;

            &lt;p&gt;

              &lt;?php echo $row_Address['FirstName']; ?&gt; &lt;?php echo $row_Address['LastName']; ?&gt;&lt;br&gt;&lt;?php echo $row_Address['Address1']; ?&gt;&lt;br&gt;&lt;?php echo $row_Address['Address2']; ?&gt;&lt;br&gt;&lt;?php echo $row_Address['City']; ?&gt;&lt;br&gt;&lt;?php echo $row_Address['State']; ?&gt;&lt;br&gt;&lt;?php echo $row_Address['Country']; ?&gt;&lt;br&gt;&lt;?php echo $row_Address['Pincode']; ?&gt;
              &lt;br&gt;

              &lt;strong&gt;Email:&lt;/strong&gt; &lt;?php echo $row_Address['Pincode']; ?&gt;&lt;br&gt;
              &lt;strong&gt; Phone:&lt;/strong&gt; &lt;?php echo $row_Address['Phone']; ?&gt;
    &lt;br&gt;
&lt;br&gt;
     &lt;button id="&lt;?php echo $row_Address['ID']; ?&gt;" type="submit" class="btn custombutton button--isi btn-primary"&gt;deliver to this address&lt;/button&gt;
&lt;/p&gt;            
            &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;?php } while ($row_Address = mysql_fetch_assoc($Address)); ?&gt;
    &lt;!-- repeat address --&gt;
    &lt;/form&gt;
</code></pre>

<p>So from the above codes, addresses are repeated are per user.</p>

<p>i have a button which id is <code>$row_Address['ID']</code> as all ID's are unique.</p>

<p>On click on any button i want to take that ID to next page ie confirm.php</p>

<p>then use that ID by $_GET['ID'] in confirm .php</p>

<p>How can this be achieved?</p>