Forum Moderators: coopster

Message Too Old, No Replies

Select name= menu

         

Flolondon

7:09 pm on Jun 16, 2004 (gmt 0)

10+ Year Member




hiya.

i have a select list menu on my home page and not too sure how to link it up to the database using php..

Do i use a php array list or is there another simplier way.... the select list menu is very long with about 50 field names.... and about five select names....please help... its like a relationship website..

thanks

jatar_k

10:29 pm on Jun 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't quite get it Flolondon.

>>select list menu is very long with about 50 field names

a select element with 50 options in it or 50 form elements of varying types?

>>and about five select names

so 5 select elements in a form?

jatar_k

7:37 pm on Jul 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



ok, so a couple of select boxes. do you want to populate them from the db or just store the submitted values?

You could (from the lists that you stickied) populate them from a table in the db and then when they are subitted store the unique id for each individual country with the rest of the posted data.

Does that help answer your question a bit? The more specific the information you give us the easier it is to point you in the direction of a solution. You don't necessarily need to post code, just describe the specific behaviours that you want to acheive.

Flolondon

7:59 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



ok thanks for that, i will try that out - thanks