• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

php code to send checkbox form results to email

phpemail


PHP Snippet 1:

$servicetype = implode(",", $_POST['servicetype']);
$mail->body .= $servicetype."\r\n";

PHP Snippet 2:

$servicetype = $_POST['servicetype'];
if(isset($servicetype)) {
    $mail->body .= "servicetype: \r\n";

    foreach ($servicetype as $selected) {
        $mail->body .= " > ".$selected."\r\n";      
    }
}

Related Snippets

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

Laravel post contact form giving me error 419

Add restriction to WooCommerce coupons by allowed user ID

Laravel relationship belongsToMany with composite primary keys

ORA-12546: TNS:permission denied error connection to remote oracle server

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

Cannot pass null argument when using type hinting

passwordless LDAP login and get user information using Kerberos ticket in PHP

How do I do HTTP basic authentication using Guzzle?

Adding multiple items to WooCommerce cart at once

Laravel set default language not working

How to extract price from given url using Xpath?

How to reset Laravel AuthManager/guards in between API calls in tests?

Which is faster php date functions or carbon?

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

About Contact Privacy policy Terms and conditions