drop down list value to post in a email

I have been working on this for a while. I have found different websites to that allows for it to work partially.

I can’t get the drop down list to show value.

<form action="/casinorsvp2.php" id="casino_us" method="post">
         <p align="left" class="label_name">How many are Attending?</p>
        <p align="left" class="input_form"><select name="attendee[]" width="5">
          <option value="1" >1</option>
          <option value="2" >2</option></select></p>
      	  <p align="left" class="label_name">Company </p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="Company" />
      	  <p align="left" class="label_name">Contact </p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="Name" />
      	  <p align="left" class="label_name">Email</p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="Email" />
      	  <p align="left" class="label_name">Address</p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="Address" />
      	  <p align="left" class="label_name">City</p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="City" />
      	  <p align="left" class="label_name">State</p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="State" />
      	  <p align="left" class="label_name">Zip Code</p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="Zip_Code" />
      	  <p align="left" class="label_name">Phone #</p>
      	  <p align="left" class="input_form">
      	    <input type="text" name="Phone_Number" />
          <p align="left" class="label_name">I would like to enter the event via Flash Seats.</p>
          <p align="left" class="input_form">
          <select name="tickets" width="5">
          <option value="Yes">Yes</option>
          <option value="No">No</option></select></p>
      	  <p align="left" class="label_name">Select Certification(s) </p>
      	  <p align="left" class="input_form">
      	    <label>FBE </label>
      	    <input type="checkbox" name="ckboxGrp1[]" value="FBE" id="fbeBox" />
      	    <label>MBE </label>
      	    <input type="checkbox" name="ckboxGrp1[]" value="MBE" id="mbeBox" />
      	    <label>SBE </label>
      	    <input type="checkbox" name="ckboxGrp1[]" value="SBE" id="sbeBox" />
      	    <label>VA </label>
      	    <input type="checkbox" name="ckboxGrp1[]" value="VA" id="vaBox" />

$name = $_POST[‘Name’];
$email = $_POST[‘Email’];
$phone = $_POST[‘Phone_Number’];
$company = $_POST[‘Company’];
$address = $_POST[‘Address’];
$city= $_POST[‘City’];
$state = $_POST[‘State’];
$zip = $_POST[‘Zip_Code’];
$yes = $_POST[‘tickets’];
if (flashseed($yes) == “Yes”)
if (isset($_POST[‘ckboxGrp1’]))
$_POST[‘ckboxGrp1’] = implode(’, ', $_POST[‘ckboxGrp1’]);
$checkbox = $_POST[‘ckboxGrp1’];
foreach ($checkbox as $chkbx)
$checkbx .= “$chkbx\n”;

$number = $_POST[‘attendee’];
foreach ($number as $num)
$ticket .= “$num\n”;

$body = <<<EOD

Company: $company

Name: $name

Email: $email

Phone: $phone

Address: $address

City: $city

State: $state

Postal Code: $zip

Tickets: $yes

Number: $ticket

Certification: $checkbx


$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($webMaster, $emailSubject, $body, $headers);


Please any help would be good.

remove [] in the name attribute of the select control


instead of

[] is actually used if u want to accept multiple value selections from the select box.

Sponsor our Newsletter | Privacy Policy | Terms of Service