Good evening, all!
I'm trying to display multiple checkbox values in a summary screen of sorts. The website is about movies, and if somebody checks that they like more than one movie type, I would like all of their choices shown. I currently get "Your favorite movie type is: Array" as a response.
Can somebody please point me to my error?
Thank you so much.
- Jim
if(isset($_POST['type'])){
$type = $_POST['type'];
$received[] = "Your favorite movie type is: $type";
foreach($type as $var){
echo $var;}
}