rocknbil - 4:47 pm on Nov 10, 2011 (gmt 0)
Now that you have that out of the way,
if the edit form is submitted, then update the database, if not, display the form to update.
Why not display the form in **any** case?
// If form submitted, update
// query DB for data to store in form fields
// if form submitted, output success OR error message, depending
// output form with values from DB