Displaying 1 result from an estimated 1 matches for "type_of_user".
2006 Jul 02
1
multitable form
...from books and so on and all is ok.
I can make a model who is a class and who match to a table in my
database and then I generate pretty forms on a webpage.
I would like to know how I can do to make forms who interact with more
than one table.
For an example lets imaging the 4 folling tables :
type_of_user [id, typename]
users [id, username, firsname, lastname, type_of_user_id, address_id]
where type_of_user_id is a foreign key who references the type_of_user
and where
address_id is a foreign key who references the addresses table.
addresses [id, street, number, box, zip, country_id] where
country...