• 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

Python - Include another Python script

Symfony Error: "An exception has been thrown during the rendering of a template"

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

onKeyUp event calculation not working on the following rows from php generated forms except the first one

301 Redirect to remove query string on homepage only

Return new collection without modifying original collection

how do i retrieve and display the alt text of an image in wordpress?

GA4 custom event from server side, can someone tell me how i can do the following code in php?

Laravel Model save() & update() Not Saving

Correct way to use LIKE '%{$var}%' with prepared statements?

Display specific shipping method if woocommerce product has specific acf field value

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

Check if a string contain multiple specific words

Call to a member function givePermissionTo() on null

About Contact Privacy policy Terms and conditions