Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

checkboxes in email form

the mail() function

Moderators: macek, egami, gesf

Postby gesf » Mon Sep 12, 2005 3:48 am

A checkbox is an HTML form field and it has a value too, so:
Code: Select all

if(isset($_POST['checkbox_name']) && ($_POST['checkbox_name'] == '1')){
   // Whatever you want here
   // The 1 here, is the value of your checkbox. It can be 'Yes', 'No'...
   // Whatever you want...

User avatar
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.