Updating MySQL db with same-page PHP form?

Anon

New member
I'm trying to use the some.php to view/edit existing record by supplying ID with GET. If no ID supplied, I want to get a blank form, which will be submitted to create a new record. Does anyone have a ready code for a page like that? Thanks.
Sorry, forgot. I want it to come back to the same page after update, showing the editing form with newly inserted record fields as the values for form.
 
Back
Top