Hello all. I have tried to figure out why I can't make a certain part of my code sticky. I am attempting to save the user's input for the radio button section. I am using a foreach loop for everything in my array. When I try to use if isset, it returns the last item in the array instead of what was selected by the user. Here is the code:
<?php
//Creating foreach loop for magazine selection
foreach ($magSubs as $mag => $SUB_PRICE)
{
echo "<input type='radio' name='magtype' value='$mag' />$mag $$SUB_PRICE per month<br> ";
}
?>
Again, I want to make this part sticky.