• 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 Collections. Is there some kind of assertStructure method?

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

Center point of multiple gps coordinates with php

PHP Slim Framework request using withAttribute error

Symfony Mercure "Failed to send an update"

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

Combine multiple columns into an array as one of the key in a results set

Make Calculator - When Button clicked the No shows in Textbox.

I want to display default profile image if user do not have profile image

Laravel 5 session not persisting after user is logged in

Woocommerce Checkout - Add conditional field required if one field is filled

PHP to search within txt file and echo the whole line

PHP block shortcut in Visual Studio Code

How to read laravel_session cookies saved in cookie memory of browser in client side?

Laravel database insert with combining array and string

About Contact Privacy policy Terms and conditions