• 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

Issue with laravel eloquent model property

In PHP, which is faster: preg_split or explode?

Problems getting instance of UploadedFile in Yii2

Center point of multiple gps coordinates with php

Send Outlook 2010 email using PHP

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

Using spatie/media-library, how to rename a collection of uploaded files?

Create tags in laravel post publishing

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

How can I pass the list to the component variable in Laravel?

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

GRPC installed successfully on ubuntu but php is looking for it in another folder

Whats the point of running Laravel with the command 'php artisan serve'?

Laravel Jetsream Profile page not loading on fresh install

About Contact Privacy policy Terms and conditions