Passing data from one php page to another is not working - why?
<p>Frustrated php novice here...</p>

<p>I'm trying to pass a "type" value of either billto or shipto from ab.php to abp.php.</p>

<p>ab.php snippet:  </p>

<pre><code>&lt;?php
echo '&lt;a href="' . tep_href_link(FILENAME_ABP, 'edit=' . $bill_address['address_book_id'] . '&amp;type=billto', 'SSL') . '"&gt;' . 
  tep_image_button('small_edit.gif', SMALL_IMAGE_BUTTON_EDIT) .
'&lt;/a&gt;';
?&gt;
</code></pre>

<p>This does add the &amp;type=billto to the end of the url.  It looks like this:
www.mydomain.com/abp.php?edit=408&amp;type=billto&amp;id=4a6524d</p>

<p>abp.php snippet:</p>

<pre><code>if ($HTTP_GET_VARS['type'] == 'billto') {
  then it does a db update...
</code></pre>

<p>The if returns false though (from what I can tell) because the update is not performed. </p>

<p>I've also tried $_GET instead of $HTTP_GET_VARS.</p>

<p>Because the code in abp.php isn't executed until after the user clicks a button, I can't use echos to check the value, but I can see the type in the url, so I'm not sure why it's not executing.</p>

<p>Could really use some direction... whether it's what I need to change, or even just suggestions on how to troubleshoot it further.  I'm in the middle of a huge learning curve right now.  Thanks!!!</p>

<p>edit:
Sorry, I just realized I left out that after the db update the user goes back to ab.php.  So the whole workflow is this:</p>

<p>User goes to ab.php.
User clicks link to go to abp.php.
User changes data on abp.php.
User clicks button on abp.php.
Update to db is executed and user is sent back to ab.php.</p>
