I have a page that allows a user to edit a database. There is an edit part, delete part, etc. Right now I'm using If else statements. The page is getting rather crowded. I would like to be able to break it up into functions so it would be easier to read. What I need to know is after editing the fields, is there a way to call the function on the same page by clicking the submit button? I'm new to PHP so please forgive me if this is a dumb question.