Re: [ross] UPDATE a field publically
Hi Ross,
Thanks for answering! I'm not too bad with PHP (I'm basically a Delphi programmer) and even though I'm not above hiring for consulting, it might give some insight to others with a similar problem. I'm game!
Eric
*** UPDATE ***
Hi Ross,
I've figured out how to POST the updated fields to the proper table and record. However, I'm running into a problem with the variables that are not contained in the table. In particular, a variable I'm trying to 'enumerate' from a drop-down field. I have a 'foreach' running that displays certain records. In each listed record, an additional form field is displayed. When an 'option' is chosen in that field, the user then clicks on the 'submit' button to initiate the POST to the other php page. This is what I have (with some code eliminated for clearity):
<table>
<?php foreach ($citationsRecords as $record): ?>
<?php $nbr++; ?>
<tr>
<td><?php echo $record['title'] ?></td>
...
...
<td><select name="finding">
<option value='- Select -'>- Select -</option>
<option value='Founded'>Founded</option>
<option value='Unfounded'>Unfounded</option>
<option value='Continued'>Continued</option>
</select></td>
</tr></table><br/>
<input type="hidden" name="<?php echo "cite$nbr" ?>" value="<?php echo $record['title'] ?>">
<input type="hidden" name="<?php echo "find$nbr" ?>" value="finding">
<?php endforeach; ?>
When the records are submitted, there's no problem showing each of the "cite$nbr" values but I can't figure out how to format the "finding" field so each value will be saved as "find$nbr". I've looked high and low for a solution but have not been able to find one.
Any help or direction would be appreciated.
Thanks!
Eric