consider the following data structure:
subject (stdClass)
topic (stdClass)
units (int)
title (varchar 50)
description (varchar 255)
start_time (time)
end_time (time)
teacher (stdClass)
first_name (varchar 50)
last_name (varchar 50)
students (stdClass[])
1 (stdClass)
first_name (varchar 50)
last_name (varchar 50)
2 (stdClass)
first_name (varchar 50)
last_name (varchar 50)
3 (stdClass)
first_name (varchar 50)
last_name (varchar 50)
proctor (stdClass)
first_name (varchar 50)
last_name (varchar 50)
I'm having a problem on how to implement the above-mentioned data-structure into dynamic web forms. I'm not sure which type of implementation I will use to make it easier for the end-user to fill-up. At the same time preserving data integrity.
Scenario:
- A user should be able to provide the data needed to populate the "subject" object in one form. Meaning he will not be redirected to other pages (like a wizard) instead, the sub-forms per student are javascript generated.
- A user should be able to alter the data in the "subject" object on demand.
- There can be many students or none.
- Validation per sub-object is required.
So how should I present this using web-forms?