what is this script supposed to do? i am getting the feeling that it is horrible backwards. =)
please explain.
also, note, you are not sending an 'entryid' in your form for the update execute. you would need something like
PHP Code:
<input type=hidden name=entryid value="<?=$entryid?>">
if you expect the update to perform correctly.