thnx rt for the reply heres my latest try at it
multi_select.php $rq_skllz_ftch_qry = "select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='s' or sq='n'"; $rq_skllz_ftch_qry_rzlt_hndlr = mysql_query($rq_skllz_ftch_qry) or die("qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !"); echo("<form action=multi_lst_proc.php method=get>"); echo("<select id=skllz_opt name=skl_id[] width='15' style=\"font-family: $font\" multiple> <optgroup label=select skills> "); for ($count = 1; $skllz_id = mysql_fetch_row($rq_skllz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { $skll_id = $skllz_id[1]; $skll_nme = $skllz_id[0]; $sq = $skllz_id[2]; echo ("<option value=$skll_id>$skll_nme"); //echo($skll_id.$sq); //echo("</option>"); } echo("</optgroup> </select> <input type=submit value=try> </form> "); ----------------------------------- multi_lst_proc.php ----------------------------------- $rq_skllz_ftch_qry = "select skll, skll_id, sq from tbl_lookup_skllz_qlf where sq='s' or sq='n'"; $rq_skllz_ftch_qry_rzlt_hndlr = mysql_query($rq_skllz_ftch_qry) or die("qry failed ! da tbl must xixt in da db 2 b played vid ! ! ! !"); for ($count = 1; $qlfz_id = mysql_fetch_row($rq_skllz_ftch_qry_rzlt_hndlr); ++$count)//, $fmly_nme = mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) { // for ($count; $count<=$_GET['$qlf']; ++$count){ $skl_id = $skllz_id[1]; $skll_nme = $skllz_id[0]; $sq = $skllz_id[2]; echo($_GET[$skl_id]."<br>"); echo($skl_id."<br>"); //echo($nme); } but what i get is http://localhost/multi_lst_proc.php?skl_id%5B%5D=vc&skl_id%5B%5D=ln i no im being the dumbo of all timez but i cant figure out what on earth iz it with this code ????? thnx a billion guyz toby ..... --- RT <[EMAIL PROTECTED]> wrote: > Sorry. I missed the original message but if I understand it right > you want to send multiple selections from a select box to PHP. > If you add [] after the name it will create an array with the data > that's sent to the server > ie > <select name="foo[]"> > <option value="1">selection 1</option> > etc > </select> > > The variable $foo[0] or $_POST['foo'] would have the first value > selected and so on. > Hope it helps > > On Wed, 2003-03-19 at 01:42, toby z wrote: > > thnx a mill guyz for ur replys > > > > but im still stuck > > > > nuthing seem to be working n im closing-in on my ded line > > > > id be eterrnally gratefull if anyone could suggess an alternative > to > > allow multi-selection of values fetched from the db > > > > the only prob is the values are aorund 40 outta which a user has > to > > select as many as he likes n i HAVE to fetch them all from the db > > > > > > guyz hlp plz > > thnx a mill > > > > doomed ..... > > toby > > > > --- Neil Smith <[EMAIL PROTECTED]> wrote: > Hi Toby - > I > > can't actually fllw yr frm cs t hs n vwls n t ! > > > > > > However, I notice you are not closing the </option> tag. Maybe > that > > > would > > > help ? > > > AFAIK, HTML requires <option> tags to be close. > > > > > > HTH - My 2c > > > > > > Cheers, > > > Neil Smith. > > > > > > At 09:51 18/03/2003 +0000, you wrote: > > > >/* echo("<select id=qlf_opt name=rq_qlf width='15' > > > >style=\"font-family: $font\" multiple> > > > > > > > > <optgroup label=select qualifications> "); > > > > > > > > > > > >for ($count = 1; $qlfz_id = > > > >mysql_fetch_row($rq_qlfz_ftch_qry_rzlt_hndlr); ++$count)//, > > > $fmly_nme > > > >= mysql_fetch_row ($fmly_nme_ftch_qry_rzlt_hndlr) > > > > { > > > > $qlf_id = $qlfz_id[1]; > > > > $qlf_nme = $qlfz_id[0]; > > > > $sq = $qlfz_id[2]; > > > > > > > > echo ("<option value=$qlf_id>$qlf_nme"); > > > > > > > > //echo($skll_id.$sq); > > > > > > > > } > > > > > > > >echo("</optgroup> > > > > </select> > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Everything you'll ever need on one web page > > from News and Sport to Email and Music Charts > > http://uk.my.yahoo.com > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php