I am not very familar with functions but i think it will be the only way to get what i need to work. What i have is 2 frame page top frame has new "agents" that i have to assign a username and password to and the bottom frame has the list of the agents that registered already and i want to be able to do multiple updates and deleles that will refresh automatically but i can only update once or delete once even if i call the same page to do it a second time. To clear things up i have 2 buttons one called update and the other called delete to do the tasks.