Ok, the following question may be a bit simple, but I AM a newbie, after all. I am teaching myself while working on a PHP project mostly, which means I am only learning what I have to learn and which is why I've somehow missed this one and can't figure it out . . .
I know some about how to work with an array from a database table, but how about one from a form? If I have a form with 20 checkboxes using the name "shows", and five of them are checked, that comes through POST with commas, doesn't it? Does PHP automatically read it as an array or do I have to tell it to? Also, once it IS an array, how can I get a php mail script like this:
PHP Code:
$msg="<font face=\"verdana\" size=\"2\">
<strong>First Name:</strong> $firstname<br />
<strong>Last Name:</strong> $lastname<br />";
$to="emailaddress";
$subject="subject";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; ";
$headers .= "charset=iso-8859-1\r\n";
$headers .= "From: $email \r\n";
$headers .= "Reply-To: $email \r\n";
mail ($to,$subject,$msg,$headers);
?>
to print only the boxes that were checked?
Any help would be appreciated.
-metazai