denoteone Posted September 24, 2008 Share Posted September 24, 2008 I have 10 check boxes in my form that all are name=files[] well when I submit the form I want to have a list of all the files that are checked. I then want to send that list in an email. so far i have $arr = $_POST['files']; message = 'these are the files that are selected '.$arr.''; then my mail comes to me it says ------ these are the files that are selected Array Link to comment https://forums.phpfreaks.com/topic/125649-solved-sending-an-array-from-a-post/ Share on other sites More sharing options...
DarkWater Posted September 24, 2008 Share Posted September 24, 2008 $arr = array(1, 5, 7, 9, 10, 4); //pretend that it's your data. =P $string = "You've selected: " . PHP_EOL . implode(PHP_EOL, $arr); Try that. Link to comment https://forums.phpfreaks.com/topic/125649-solved-sending-an-array-from-a-post/#findComment-649657 Share on other sites More sharing options...
denoteone Posted September 24, 2008 Author Share Posted September 24, 2008 worked like a charm.Thanks Dark Water! Link to comment https://forums.phpfreaks.com/topic/125649-solved-sending-an-array-from-a-post/#findComment-649667 Share on other sites More sharing options...
DarkWater Posted September 24, 2008 Share Posted September 24, 2008 No problem. Link to comment https://forums.phpfreaks.com/topic/125649-solved-sending-an-array-from-a-post/#findComment-649669 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.