update problem

Hi,
I am now try to fixing the error in my update form but I still cannot find where is it.
Can anyone help me with this problem?
There is no error occur but the form cannot update to database and also appear the blank form.
These are my code for update.

forget what i said before because i read over it again and the while loop is actually there i just missed it.

I think the bit on update_staff1.php which is

if (isset($_POST['submit'])){

is the part that checks the form has been submitted and if it has it will continue. But it gets the from the input name in the submit button on the previous page and you have 2 submit buttons and neither of them are named submit.
At the bottom of update_staff.php you have

Hi,
I know you have not asked this but mysql_** is depricating and you are advised to move to mysqli or the PDO. I suggest PDO due to portability and easy. If you know OOP it is extremely easy. you can use this as skeleton to get started with PDO. Copy test and play around to fit your needs

Agree with Mathieu. you have no Post var coming from the form called 'submit'. Change the if statement at the top of your update processing page. I would suggest using this instead of the isset() that you have there now...

if ($_POST['update']=="Update"){
//the update code...
}

This would allow you to have this page potentially handle additional updates. Furthermore it requires the user to have clicked the button labeled "Update". The way you had it if someone clicked a button that happened to be called update just to get to the page, the script to run the update would have been triggered.