Also, as Weedpacket was getting to ...
<input type="submit" name="submit" class="formTextbox" value="Submit" onsubmit="<?=update_db();?>">
Will not work, since the onsubmit will end up empty as Weedpacket said.
But my point is, onsubmit works with JavaScript, not PHP. PHP can not interact with the browser ... all the dynamic stuff you see happen on web sites is done via JavaScript (usually), or some form of DHTML (HTML, JS, XML (Ajax)).