Posting an array in php(smarty)

Luv

New Member
I'm trying to post multiple answers(using checkboxes) in a form. The question is pick what months your available, here is my code...\[code\]$smarty->assign('month', array( '1' => 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August', '9' => 'September', '10' => 'October' , '11' => 'November', '12' => 'December' ) );\[/code\]Then the line I use to post the values is as follows...\[code\]<span style="color:#000000;">'($_POST['monthsAvailable']) .'</span>\[/code\]However when I recieve the email it just reads "Array". I was wondering what is the correct format for posting arrays? Any advice is most appreciated!
 
Back
Top