• 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

How can I easily switch between PHP versions on Mac OSX?

CSV to PHP class properties

Check if my GET request has Header: Token

PHP my timezone is no setting up in PHP.ini File in xampp

Phalcon: setStatusCode returns empty response

WooCommerce: Add/display Product or Variation custom field everywhere

php retrieve specific data onclick from database in a list format

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

XML to CSV with PHP converter [problem with images grabing]

Adding multiple items to WooCommerce cart at once

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

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

Unable to create lockable file - Laravel 8 & PHP 8

Trying to iterate over a mongodb cursor twice - failing

How to find the date a user created their Google account

About Contact Privacy policy Terms and conditions