Form with multiple db lookups
Posted: Sun Aug 22, 2010 9:59 pm
HI All,
Fairly new to PHP but am having a slight problem with a page. I have a form that has two <select> boxes. The values to be put into the boxes are stored in a database. The tables used are a many to many relationship.
I wanted the values in the second box to reflect the selection from the first box based on the join table for the m-m relationship. (Does this all make sense???).
I am fairly sure that javascript will be involved here but was hoping to avoid it (never learnt javascript). Can I just do this with PHP?
Cheers,
Shags
Fairly new to PHP but am having a slight problem with a page. I have a form that has two <select> boxes. The values to be put into the boxes are stored in a database. The tables used are a many to many relationship.
I wanted the values in the second box to reflect the selection from the first box based on the join table for the m-m relationship. (Does this all make sense???).
I am fairly sure that javascript will be involved here but was hoping to avoid it (never learnt javascript). Can I just do this with PHP?
Cheers,
Shags