• 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

Distribute array row data to make multiple new rows

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

Read users and passwords from a txt file

Which is faster php date functions or carbon?

Could not decode a text frame as UTF-8.

phpunit - testing is painfully slow

Laravel SQL query midnight time not showing

how to get value from array in laravel

array_key_exists(): The first argument should be either a string or an integer

Timber: Single post pagination does not work (wp_link_pages)

No definition found for function in vendor vscode

Check if a string contain multiple specific words

Update Order custom Field value with WooCommerce REST API

Prestashop webservice API creating cart rules

Create tags in laravel post publishing

About Contact Privacy policy Terms and conditions