Hey,
I'd like to be able to edit a drop down in the staff viewticket.
Here's the script on editticket:
<?
$sql='SELECT id,agency FROM ost_agencies ORDER BY agency';
if(($agencies=db_query($sql)) && db_num_rows($agencies)){ ?>
<tr>
<td align="left"><b>Ärendestatus:</td>
<td>
<select name="agency">
<?
while($row=db_fetch_array($agencies)){ ?>
<option value="<?=$row?>" <?=$info==$row?'selected':''?> ><?=$row?></option>
<?}?>
</select>
</td>
</tr>
<? }?>
I put this code on viewticket.inc.php along with this submit button:
<input class="button" type="submit" name="submit_x" value="Update Ticket">
And this code before and after it:
<form action="tickets.php?id=<?=$ticket->getId()?>" method="post">
and </form>
But nothing gets updated and I an error msg "Unknown action"
Do anyone know how to get around this?
Thanks!