Adding checkboxes to my mailme.php

February 26, 2009 at 17:00:41
Specs: Windows XP
I'm pretty much a newbie but have managed to create a contact info form and with them help of others a mailme.php to get the info emailed back to me once submitted. My only issue is adding the checkboxes that are checked to my php so that info is also mailed to me.

See More: Adding checkboxes to my mailme.php

Report •

February 26, 2009 at 17:31:48
The checkbox, I believe, will exist within the $_POST array only if it's set. To check it, use isset.

if(isset($_POST["chk"]) && $_POST["chk"] === "on") { 
   echo $_POST["chk"]; 

check here to... <input name="chk" type="checkbox">


Report •
Related Solutions

Ask Question