• 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

*** ERROR *** The PHP configuration loaded file is: c:/wamp64/bin/php/php8.1.0/php.ini - should be: c:/wamp64/bin/apache/apache2.4.53.1/bin/php.ini

PHPExcel export HTML table to xlsx

How to get company posts from LinkedIn via API?

Display the WooCommerce product price inside a custom function

CONCAT columns with Laravel 5 eloquent

MySQL upgrade causing unexpected results on simple WHERE clauses

PHP Warning: Module already loaded in Unknown on line 0

nginx err_connection_refused, can anyone help me?

Extract string between first whitespace and last whitespace in php

How to pass data to all views in Laravel 5?

How to get monthly wise data in laravel

Autoloading classes in PHPUnit using Composer and autoload.php

virtctl works when executed via command line but not from php exec()

Laravel You requested 1 items, but there are only 0 items available

Explode not working properly with dash

About Contact Privacy policy Terms and conditions