metse Posted January 12, 2009 Share Posted January 12, 2009 'am a newbie & am busy designing a site that has simple order-form which captures details of a cust and submit them throuth as an email using php, which works fine. my problem is i added 2 list boxes, one(as a drop-down) pre-populated with items-to-order which allows the user to add items in-need to the second list box... how do i sumbit all values of the 2nd list box along as an email. My code currently is: . . $listbox2 = $POST('listbox2') . . $message .= "items on order are: "; $message .= $listbox2; . . which doesn't work. Please Help !!!! Link to comment https://forums.phpfreaks.com/topic/140467-help-php-code-to-post-all-list-box-values/ Share on other sites More sharing options...
trq Posted January 12, 2009 Share Posted January 12, 2009 foreach ($_POST['listbox2'] as $v => $k) { $listbox2 .= $k; } Link to comment https://forums.phpfreaks.com/topic/140467-help-php-code-to-post-all-list-box-values/#findComment-735104 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.