• 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

Laravel Sanctum CSRF not authenticating

How can I get data from PHP to Android TextView?

Get latest Tweets - What API

Malformed MIME header error in Symfony 5.3

Show Custom Data in Woocommerce Order Details Admin Area

woocommerce get_order_report_data to show order_item_id

Laravel SQL query midnight time not showing

Inserting Country Selection into MySQL PHP [duplicate]

PHP array sort and remove duplicates by two field values

How to auto populate preferredCountries from intl-tel-input with db output

How to make a foreign key not using primary key

GuzzleHttp Hangs When Using Localhost

Problem with fetching data from database in Laravel

How to display table header in every page using FPDF library?

How to send upload image through email

About Contact Privacy policy Terms and conditions