So I have a very basic table built.. Each item pulled from the db has an associated fine/jail with it. When the viewer selects an item from the "crime" field, I want to auto-populate "fine" and "jail" with the associated items without navigating away from this form page. Any ideas would be awesome, thanks in advance.
<form name="calc" method="post" action="submit_calc.php">
<table id="calc">
<tr>
<td><b>Count</b></td>
<td><b>Charge</b></td>
<td><b>Fine</b></td>
<td><b>Jail Time</b></td>
</tr>
<tr>
<td><input type="text" name="count"></td>
<td><select name="crime">(code that while loops through a list of items
from a db)</select></td>
<td name="fine"></td>
<td name="jail"></td>
</tr></table></form>