1.3.8a - I know, we are upgrading soon

The code I'm working on should auto update the order_status when a barcode on an invoice is scanned into a text box.

I have placed this in admin/includes/header.php as I would like it visible always and mainly viewing admin home.
Also have "admin home" refresh when the order is updated with the cursor always ready to go in that checkbox if initially clicked there.

Here's the code I have based on super_orders id text box though a bit stuck. While in super_orders viewing an order, it's changing the dropdown to order_status 2? The input_field itself does nothing up in the header.
Any suggestions?

PHP Code:
<?php
        
echo zen_draw_input_field('oID''''size="6"');
                echo 
zen_draw_hidden_field('oID'$oID);
            
$db->Execute("UPDATE " TABLE_ORDERS " SET orders_status_id='2' where orders_id='".$oID."'");
                echo 
'</form>'?>