cookspyder Posted July 23, 2007 Share Posted July 23, 2007 I have a form that has many check boxes built into an array. I need to email this array in an email message. ie the email message would look like: Hello, the following person would like to have these colors: array[1],array[2], and so on. the array length can change each time. any ideas Link to comment https://forums.phpfreaks.com/topic/61412-solved-advanced-messages-in-mail-function/ Share on other sites More sharing options...
rlindauer Posted July 23, 2007 Share Posted July 23, 2007 You can implode the array: $colors = implode(",",$color_array); $message = "Hello, the following person would like to have these colors: $colors"; http://us.php.net/implode Link to comment https://forums.phpfreaks.com/topic/61412-solved-advanced-messages-in-mail-function/#findComment-305650 Share on other sites More sharing options...
cookspyder Posted July 23, 2007 Author Share Posted July 23, 2007 Thanks alot! Link to comment https://forums.phpfreaks.com/topic/61412-solved-advanced-messages-in-mail-function/#findComment-305668 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.