So guys... everything is working properly except for when the radio button is clicked to either "yes" or "no" on the form the email that is send does not display it at all.

$message = " $todayis [PST] \n
Attention: Interactive Media Requesting a Bid \n
Phone Number: $areacode2, $phonenumber, $phonenumber2 \n
From: $firstname2, $lastname2\n
Heard about Us?: $hearaboutus\n
Project Details: $projectdetails\n
Budget: $budget\n
Need estimate by: $estimateby\n
Final delivery deadline: $deadline\n
Other services? Yes: $yes\n
Other services? No: $no\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";

It is the "other services" part of the code. Let me know if you need all of the mailing script.

Pbpyrojust,

The answer will lie in where you set $yes and $no . Could you post the code?

Airshow

Sorry for the really late response!

<input type="radio" name="radio" id="yes" value="yes" />
      yes</label> 
    <label>
      <input type="radio" name="radio" id="no" value="no" />
      no</label>
    <br />
    <label>
      <input type="submit" name="submit2" id="submit2" value="Submit" />
    </label>
    </form>

Thank You!

Pbpyrojust,

That's good.

Can you post the php code where you read $_POST or $_GET and set $yes and $no. It must be somewhere in the php file above the $message = .... block in your original post.

Airshow

Well Airshow you are about to get all the code. Contact form and email script. Note that only the "request a bid" part of the contact form is relevant. Thank you.

Contact form.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description"  />
<title>Call Me Now and Request a Bid</title>
<style type="text/css">
<!--
body {
	border: none;
	margin: 0px;
}
#form1 {
	font-size: 14px;
	color: #000;
}
#form2 {
	font-size: 14px;
	color: #000;
}
.class01 {
	font-size: 18px;
	color: #603;
}
.class02 {
	font-size: 18px;
}
.class03 {
	color: #F00;
	font-size: 12px;
}
-->
</style>
</head>

<body>
<table width="600" height="479" border="0" align="left">
  <tr>
    <td width="170" valign="top">
      <form id="form1" name="form1" method="post" action="callmenow.php">
      
      <!-- DO NOT change ANY of the php sections -->
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>

<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />

      <span class="class01">CALL ME NOW*...</span><br />
        Your Phone Number
        <br />
        <label>
          <input type="text" name="areacode" id="areacode" size="3" />
          -
          <input name="phonenumber01" type="text" id="phonenumber01" size="3" />
        </label>
    -
    <label>
      <input name="phonenumber02" type="text" id="phonenumber02" size="4" />
    </label>
    <br />
    <br />
    <span class="class03">*</span><span class="class02">First Name</span>
    <br />
    <label>
      <input type="text" name="firstname" id="firstname" />
    </label>
    <br />
    <span class="class03">*</span><span class="class02">Last Name </span>
    <br />
    <label>
      <input type="text" name="lastname" id="lastname" />
    </label>
    <br />
    <span class="class03">*</span><span class="class02">Company</span>
    <br />
    <label>
      <input type="text" name="company" id="company" />
    </label>
    <br />
    <span class="class03">    *REQUIRED FIELDS</span>
    <br />
    <br />
    <label>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" id="submit" value="Call Me" />
    </label>
    <br />
    <br />
    We'll call you back within 1 business day.
    </form></td>
    <td bgcolor="#000000" width="1"></td>
    <td width="0"> </td>
    <td width="421" valign="top"><form action="requestabid.php" method="post" name="form2" id="form2">
    
    <!-- DO NOT change ANY of the php sections -->
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>

<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />

  <span class="class01">REQUEST A BID</span>
          <br />
          Would you like us to prepare an Estimate for your Interactive Project? Just answer the questions in the form below and we'll send an Estimate your way.<br />
          <span class="class03">*</span><span class="class02">First Name</span>
          <label>
            <input name="firstname2" type="text" id="firstname2" />
          </label>
        <br />
        <span class="class03">*</span><span class="class02">Last Name</span>
        <label>
          <input type="text" name="lastname2" id="lastname2" />
        </label>
        <br />
        <span class="class03">*</span><span class="class02">Email Address</span>
        <label>
          <input name="email" type="text" id="email" size="40" />
        </label>
        <br />
        <span class="class03">*</span><span class="class02">Phone</span>
        <label>
          <input name="areacode2" type="text" id="areacode2" size="3" />
        </label>
    -
    <label>
      <input name="phonenumber" type="text" id="phonenumber" size="3" />
    </label>
    -
    <label>
      <input name="phonenumber2" type="text" id="phonenumber2" size="4" />
    </label>
    <br />
    <span class="class03">*REQUIRED FIELDS</span>
    <br />
    <br />
    How did you hear about us?
    <label>
      <select name="hearaboutus" size="1" id="hearaboutus">
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Source</option>
        <option>Search Engine</option>
      </select>
    </label>
    <br />
    Describe your Project (the more details the better).<br />
    <label>
      <textarea name="projectdetails" id="projectdetails" cols="45" rows="5"></textarea>
    </label>
    <br />
    Allocated Budget for your project: 
    <label>
      <select name="budget" size="1" id="budget">
        <option>&lt; $5,000</option>
        <option>&gt; $ 5,000</option>
        <option selected="selected">&gt; $15,000</option>
      </select>
    </label>
    <br />
    When do you need the Estimate by?
    <label>
      <input type="text" name="estimateby" id="estimateby" />
    </label>
    <br />
    What is the final delivery deadline <br />
    for your project?
    <label>
      <input type="text" name="deadline" id="deadline" />
    </label>
    <br />
    Do you need other services outside of Interactive?<br />
    (Such as Creative Services, Production or Post?)<br />
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label>
      <input type="radio" name="radio" id="yes" value="yes" />
      yes</label> 
    <label>
      <input type="radio" name="radio" id="no" value="no" />
      no</label>
    <br />
    <label>
      <input type="submit" name="submit2" id="submit2" value="Submit" />
    </label>
    </form></td>
  </tr>
</table>
</body>
</html>

Email script.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Request a Bid Script</title>
</head>
<body>

<!-- Reminder: Add the link for the 'next page' (at the bottom) -->
<!-- Reminder: Change 'YourEmail' to Your real email -->

<?php

$ip = $_POST['ip'];
$httpref = $_POST['httpref'];
$httpagent = $_POST['httpagent'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$attn = $_POST['attn'];

if(empty($firstname2) || empty($lastname2) || empty($areacode2 )) {
echo "<h2>Use Back - fill in all fields</h2>\n";
die ("Use back! ! ");
}

$todayis = date("l, F j, Y, g:i a") ;

$attn = "Interactive Media";
$subject = "Requesting a Bid";

$message = " $todayis [PST] \n
Attention: Interactive Media Requesting a Bid \n
Phone Number: $areacode2, $phonenumber, $phonenumber2 \n
From: $firstname2, $lastname2\n
Heard about Us?: $hearaboutus\n
Project Details: $projectdetails\n
Budget: $budget\n
Need estimate by: $estimateby\n
Final delivery deadline: $deadline\n
Other services? Yes: $yes\n
Other services? No: $no\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";

$from = "From: $firstname2, $lastname2\r\n";


mail("YOUR EMAIL HERE", $subject, $message, $from);

?>

<p align="center">
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $firstname2 ?> ( <?php echo $email ?> )
<br />

Attention: <?php echo $attn ?>
<br />
<?php echo $ip ?>

<br /><br />
<a href="index.php"> Next Page </a>
</p>

</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.