You forgot to put a value between your tags. change this: echo '>'.''; to this: echo '>'.$picklist[$x].''; At 3/6/2005 06:18 PM, you wrote: >spent a lot of time today on this - researching and can't seem to make >it work. > > >function build_select_box ($picklist) { > > echo ''; >} > >$picklist = array("john", "paul", "george", "ringo"); > >echo ''; >echo '
method="post" target="db_get_attributes">'; >build_select_box($picklist); >echo ''; >echo '
'; >?> > >It should be obvious what I am trying to get - is a pull down 'select' >menu with the 4 names listed and I am actually going to pass this a much >larger array when time comes. > >I can't make this work...what's the secret? > >Note that if you try to copy/paste - the line that starts >echo '
>will wrap to the next line > >Craig > >--------------------------------------------------- >PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us >To subscribe, unsubscribe, or to change you mail settings: >http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss