[eluser]TheFuzzy0ne[/eluser]
[quote author="bikuta" date="1209208655"]Ok let me try to make it clearer:
At the moment I have a form which has the following fields:
- UserId
- UserFullname
- UserName
- Password
- Gender
Now this is fine, I can post the values normally using form post method.
Now I need to add another variable called "schools", which will be an array of Id's read from the database.
So I need a way for me to be able to post this array when the form is submitted.
So adding the school array means that the user can add/remove schools which are associated with the user.
The fields on the form would then look something like:
- UserId
- UserFullname
- UserName
- Password
- Gender
- Schools (this is an array)
How should I implement this Schools array, without changing how the form submission works?
In the backend I have 3 tables:
User table (UserId, UserFullname, UserName, Password...)
School table (SchoolId, SchoolName)
UserSchool table (UserId, SchoolId)[/quote]
I still don't get it... What interface is the user going to have at the front end with which to choose their school? How many schools can they choose?