Why not display the body of the letter select box?

in the body of the message select box does not come not otobrazhaetsya:

code from the form:
<li class="full-list">
 <label>Stakeholder :</label>
 <div class="input-form">
 <span class="icon icon-pencil icon-tertiary icon-form"></span>
 <select class="form-control input-lg" name="numberp is" data-rule="numberp is">
 <option value="1">Stakeholder</option>
 <option value="2">PPP GLOBAL STAKEHOLDERS</option>
 <option value="3">BUSINESS Assoc</option>
 <option value="4">GOVERNMENT & LPA's</option>
 <option value="5">AID - Donors</option>
 <option value="6">CIVIL SOCIETY</option>
</select>
 <div class="validation"></div>
</div>
 </li>

contact.php:
<?php
/*
Credits: Bit Repository
URL: http://www.bitrepository.com/
*/

include 'config.php';

error_reporting (E_ALL ^ E_NOTICE);

$post = (!empty($_POST)) ? true : false;

if($post)
{

$name = stripslashes($_POST['name']);
$email = trim($_POST['email']);
$subject = "PPP Moldova";
$message = stripslashes($_POST['message']);
$numberp is = stripslashes($_POST['numberp is']);



$error = ";



if(!$error)
{
$mail = mail(WEBMASTER_EMAIL, $subject, $message,
 "From: ".$name." <".$email."-->\r\n"
 ."Reply-To: ".$email."\r\n"
 ."X-Mailer: PHP/" . phpversion());


if($mail)
{
echo 'OK';
}

}


}
?>


please tell me what is wrong in the code?
June 14th 19 at 20:07
2 answers
June 14th 19 at 20:09
Solution
In fact it should be:
<select class="form-control input-lg" name="numberp is" data-rule="numberp is">
 <option value="Stakeholder">Stakeholder</option>
 <option value="PPP GLOBAL STAKEHOLDERS">STAKEHOLDERS PPP GLOBAL</option>
 <option value="BUSINESS Assoc">Assoc BUSINESS</option>
 <option value="GOVERNMENT & LPA's">GOVERNMENT & LPA's</option>
 <option value="AID - Donors">AID - Donors</option>
 <option value="CIVIL SOCIETY">CIVIL SOCIETY</option>
 </select>

And
$numberp is = $_POST['numberp is'];

Or if you do as You want then in Php
<?php 
if(isset($_POST['btn_name'])){
$numberp is = $_POST['numberp is']
if($numberp is == "1"){
echo"Stakeholder";
}
if($numberp is == "2"){
echo"PPP GLOBAL STAKEHOLDERS";
}
}?>

Etc.
June 14th 19 at 20:11
1. it is unclear how the form is submitted
2. in the code $numberp is the letter not sent

Find more questions by tags PHP