eva21 Posted May 13, 2009 Share Posted May 13, 2009 I have the following list box: echo("<Select size=3 MULTIPLE onchange='getMedia(" . $rows['id'] . ")' name='" . $rows['id'] . "_teach' id='" . $rows['id'] . "_teach'>"); echo("<option value='t1'>Apple</option>"); echo("<option value='t2'>Banana</option>"); echo("<option value='t3'>Other</option>"); If i select t1 and t2, and press submit, when i echo my posted variables I only have t2. I realize 75_teach variable is being overwritten....so how do i make both values show up? Link to comment https://forums.phpfreaks.com/topic/157972-php-list-boxes-posting/ Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 Add the [] after _teach. Link to comment https://forums.phpfreaks.com/topic/157972-php-list-boxes-posting/#findComment-833248 Share on other sites More sharing options...
eva21 Posted May 13, 2009 Author Share Posted May 13, 2009 Wow i was making this way to complicated for myself...thank you soo much! Link to comment https://forums.phpfreaks.com/topic/157972-php-list-boxes-posting/#findComment-833251 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.