I've spent hours trying to get this working and I'm hoping someone can help me out here. I'm using the version 4 on Joomla 1.6.
Goal:
1) I want a form with four fields that saves to a database. It's only accessible for logged in users.
2) I want the user to send form to database as a new record, if one doesn't already exist for this user.
3) If a record already exists for this user, I want the form to populate with the database record (all four fields) for the logged in user.
4) I want the user to be able to edit or change the fields in the form and then save form, which then updates record in database. But not create a new record.
I've got the table setup and the form does save it to the table. But it creates a new record every time the user submits form. I don't know how to just modify an existing record.
Thank you for your help.๐
Goal:
1) I want a form with four fields that saves to a database. It's only accessible for logged in users.
2) I want the user to send form to database as a new record, if one doesn't already exist for this user.
3) If a record already exists for this user, I want the form to populate with the database record (all four fields) for the logged in user.
4) I want the user to be able to edit or change the fields in the form and then save form, which then updates record in database. But not create a new record.
I've got the table setup and the form does save it to the table. But it creates a new record every time the user submits form. I don't know how to just modify an existing record.
Thank you for your help.๐