Hello, I'm in a bit of a jam with a dataset I'm working on. I need to let users edit data that's bracket delimited and can't figure out the best way to do it.
Sample Data
ID | Name | Education
1 | John Doe | [education][school]Mayer High School[/school][year]2000[/year][degree]HS Diploma[/degree][/education][education][school]River Technical College[/school][year]2004[/year][degree]Bachelors Degree[/degree][/education]
Problem
So in my Edit page, users need to be able to edit their name and their Education info. I can't figure out the best way to turn into a form that would look like this:
Edit Page
Name: [ John Doe ]
Education 1
School: [ Mayer High School ] Graduated: [ 2000 ] Degree: [ HS Diploma ]
Education 2
School: [ River Technical College ] Graduated: [ 2004 ] Degree: [ Bachelors Degree ]
+ Add Another Degree
[-SAVE-]
My main concern is how to break the data up into the fields I need them to be in, and when the user edits any of the fields, how do I bring the data back together to go back into the table in the original format.
Any help and guidance is appreciated.
Thanks,
Jay