Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7826497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:26:32+00:00 2026-06-02T09:26:32+00:00

I am using this email form: http://www.freecontactform.com/email_form.php I am not too savvy with PHP,

  • 0

I am using this email form:
http://www.freecontactform.com/email_form.php

I am not too savvy with PHP, so can any one help me add check-boxes to this form?
For example, there will be 6 items with check-boxes – if the user clicks 3 then only 3 items will appear in the email sent to me.

I would appreciate any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:26:33+00:00Added an answer on June 2, 2026 at 9:26 am

    Checkboxes

    You should add checkboxes where you want them to be, inside <form ...> </form>, give them different names, for example, I used name="checkboxone" for first:

    <input name="checkboxone" type="checkbox" checked="checked"/> 
    <input name="checkboxtwo" type="checkbox"/> 
    

    You can use your own memorable names: name="my_very_own_product"

    Then in PHP code

    This way you can check if they are checked:
    note: before “// create email headers” you can still edit email sent.
    Mail is sent at line 69.

    if (isset($_POST['checkboxone'])) {
        // If checkbox one is checked:
        doSomethingWhenCheckboxoneChecked();
    }
    
    if (isset($_POST['checkboxtwo'])) {
        // If checkbox two is checked:
        doSomethingWhenCheckboxtwoChecked();
    }
    
    // Here we add selected product to email message body:
    if (isset($_POST['my_very_own_product'])) {
        // If checkbox my_very_own_product is checked:
        $email_message .= "My Very Own Product is selected by customer!!\n";
        // Did you notice \n here? It is here for adding line break after text...
    }
    
    
    // create email headers
    

    If you need more help just ask for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this code to send mail with php http://www.siteduzero.com/tutoriel-3-35146-e-mail-envoyer-un-e-mail-en-php.html#ss_part_4 . This code
This is driving me nuts. http://www.cssdrive.com/index.php/examples/exampleitem/focus_pseudo_class This is an example of using the hover
I'm testing Salesforce's WebToLead form using this simple example http://wiki.developerforce.com/index.php/Simple_Web2Lead_Implementation . When I changed
at the moment i'm using this validation plugin: ( http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/ ) but when it
I've got a PHP/AJAX form on my site at http://www.brianrhea.com (click Request Project) When
i am using this widget to get my users to create accounts: <iframe src=http://www.facebook.com/plugins/registration.php?
I am using JSPs, and this is my contacts.jsp <%@taglib uri=http://www.springframework.org/tags/form prefix=form %> <html>
I`m using the following code post values using JSoup: Document document = Jsoup.connect(http://www......com/....php) .data(user,user,password,12345,email,info@tutorialswindow.com)
I've been using MassTransit for handling e-mail messages. Using this code: http://meandaspnet.blogspot.com/2009/10/how-to-binary-serialize-mailmessage-for.html I'm able
This page uses Drupals contact form to send emails: http://www.westlake.school.nz/contact Problem is, the school

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.