...is that the image will still be on the page when the rest of the code finishes.<BR><BR>You might want to put the gif into a <LAYER> or <DIV> (maybe have to do in in a browser-dependent way?) and then hide the layer/div in code that loads when the DB stuff is done.<BR><BR>
... stuff is done does your image appear? or what happens next?<BR><BR>I have done similar things where I would run the database stuff first and then while have some sort of animation image going, and then I would include a refresh page tag in the header to go to another page or history back one type of thing
If you put the image in a div (or layer for older netscape) on the page with the form, you can set it to where it is not visable. Then when the form is submitted, show it. When the page that does the processing starts writing content back, the img (along with everything on the form page) disappears.