The issue I am having is that my form submit button, because it is within the foreach loop, ends up submitting for every single item that the foreach runs through. If I put it on the outside of the loop the submit does not have the correct number to submit, it ends up submitting the last value in the foreach. Does anyone have a solution for this?
<div data-role='collapsible' data-collapsed='true' data-icon='arrow-l'>
<h3><?=$ticket['ticket_no']?> - <?=$ticket['title']?></h3>
<div class="ui-body ui-body-a">
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="c">
<li data-role="list-divider"><h1></h1></li>
<li><h3>Description</h3><br><br><?=$ticket['description'] ?></li>
<input type=hidden name=ticket_number value=<?= $ticket['ticket_no']; ?>>
<form action="<?=$_SERVER['PHP_SELF']; ?>" method="post">
<fieldset>
<div data-role="fieldcontain">
<label for="status" class="select">Change Status:</label>
<select name="status" id="<?=$ticket['ticket_no']?>">
<option value="Open">Status</option>
<option value="Tracker">Tracker</option>
<option value="Abandon">Abandon</option>
<option value="Communicate">Communicate</option>
<option value="Closed">Closed</option>
</select>
</div>
<input type="submit" data-theme="a" name="submit" value="Submit"></input>
</fieldset>
</form>
</div><!-- /themed container -->
</div> <!-- End inner collapsible set -->
} ?>