You need to put the if(empty) ABOVE the echo and ABOVE the foreach(), like this:

if(empty($hullcolor_value)){
     $hullcolor_value = array(" ");
}

echo "<p>Hull Color: " .implode(', ', $hullcolor_value)."";

foreach($hullcolor_value AS $hullcolor){
            echo $hullcolor."<br /> ";
          }

    hmmm....I tried that but with no luck. Here's my code:

    //Hull Color Output
    if(empty($hullcolor_value)){ 
         $hullcolor_value = array(" "); 
    } 
    
    echo "<p>Hull Color: " .implode(', ', $hullcolor_value).""; 
    
    foreach($hullcolor_value AS $hullcolor){ 
                echo $hullcolor."<br /> "; 
              } 

    Sill same errors as before

      take out the echo part, that part was only for listing the hullcolor_values from the array in an e-mail. Just use the foreach()

        Okay, so with this code,

        66    //Hull Color Array
        67     $hullcolors_array = array("575" => "<strong>Hull Color</strong>  ",);
        68     $hullcolor_value = $_POST['hullcolor'];
        69  } 
        70      //Hull Color Output
        71      if(empty($hullcolor_value)){ 
        72     $hullcolor_value = array(" "); 
        73  } 
        74
        75      echo "<p>Hull Color: " .implode(', ', $hullcolor_value).""; 
        
        76      
        77 foreach($hullcolor_value AS $hullcolor){ 78 echo $hullcolor."<br /> "; 79 }

        I'm now getting:

        Parse error: parse error, unexpected '}' in /hsphere/local/home/captaint/swiftda.com/buildaboat/SENDMAIL_HTML.php on line 69

          Thanks so much rsmith. I'm really enjoying php. I'm really green behing the ears at this as I'm a front end designer.

          With my radio selections, it only echos the selected radios. Is that possible to do at all with checkboxes?

          Also, do you have any suggestions on any good php books. I recently picked up the SAMS Teach Yourself PHP & Mysql. Thanks again for all your assistance.

            Actually, it does only display when it is checked but it only displays the value. Can it display the "Hull Color" as well as the value like my radios?

              Yeah I tried 5 different books and always ended up giving up on PHP. But then, for basic understanding, I got this book: [URL="http://www.amazon.com/PHP-blueprint-creating-server-side-Blueprint/dp/0764583328"[/URL] and it helped make it click, now I'm working on refining my weak areas and moving into advanced stuff.

              As for your question I'm not understanding exactly what you want. If you want it to display the value of a checkbox, the value is something you set like this:

              <input type="checkbox" name="colors[]" value="red">You've Chosen Red
              <input type="checkbox" name="colors[]" value="blue">You've Chosen Blue
              

              As you can see the value is defined in the properties of the input attribute but the text appearing on the page can be more descriptive. I hope this is what you meant.

                Thanks for the heads up on the book, I'll give it a shot. I'm really trying to grasp the over basic concept of php and it's proving to be a difficult task. It seems there are a lot of ways to do many things.

                As for my question,

                on the html (form) page, this infact does display the value.

                <input name="hullcolor[]" type="checkbox" value="575" onclick="addUp()">Hull Color....$575

                Now when it is submited to the processing page (which is also my "results" page) it only displays the value "575". I was wondering how I could display:

                Hull Color...$575

                if it was selected and if not, it will not display.

                Due to the help from stolzboy, for my radio selections, we:

                on the processing page that "maps" to the engine type based on the value send through Engines... so then you could echo it out

                so... something like the following, it's untested, but they theory is there.

                $engines_array = array("12946" => "E 150DPXSC", "14348" => "E 175DPXSC"); 
                
                $engine_value = $_POST['Engines']; 
                
                echo "Engine Type: " .$engines_array[$engine_value]; 

                  You need to set the value of the html form entity to be exactly what you want it to display when the form is submitted. 575 is only displayed because that's what you have set as the value of the input item. If you want it to say Hull Color 575 then put that into your value, like this:

                  <input name="hullcolor[]" type="checkbox" value="Hull Color.... 575" onclick="addUp()">Hull Color....$575
                  

                    On my form I have total box which updates from the value. If I put anything other than numbers on the value it will not calculate and update the total.

                      Ah, then you might be out of luck.

                        This is how I did my "radio" selections and it works great.

                        $engines_array = array("12946" => "E 150DPXSC", "14348" => "E 175DPXSC"); 
                        
                        $engine_value = $_POST['Engines']; 
                        
                        echo "Engine Type: " .$engines_array[$engine_value]; 

                        I wonder if there is a way to do this with a checkbox...

                          Then you should be able to do the same thing by adapting what you did with the $engines_array to suit a $hullcolor_array setup.

                            stolzboy help me create that pass through array and I have tried to do the same with the "checkbox version array" for hull color but with no luck. 😕

                              How do you want it to display if there are multiple selections?

                              Where are you at right now with the hull_color array business like you adapted with the Engines array?

                                Here's a link to what I'm working on:
                                www.swiftda.com/buildaboat/buildaboat.htm

                                If there are multiple checkbox selections I would like to display them one on top of the other:
                                (Ex.
                                Hull Color....$575
                                Deck Color....$1,100
                                ect.)

                                There's a section where someone will fill out their information then go on to making their selections. The radio selections work exactly how I would like them to by doing this:

                                $engines_array = array("12946" => "E 150DPXSC", "14348" => "E 175DPXSC"); 
                                
                                $engine_value = $_POST['Engines']; 
                                
                                echo "Engine Type: " .$engines_array[$engine_value]; 

                                I tried applying that same logic to the check box array and cannot get it to work.

                                Right now here's my current checkbox array coding:

                                //Hull Color Array
                                $hullcolors_array = array("575" => "Hull Color  ",);
                                $hullcolor_value = $_POST['hullcolor'];
                                
                                //Hull Color Output
                                if(empty($hullcolor_value)){ 
                                     $hullcolor_value = array(" "); 
                                } 
                                foreach($hullcolor_value AS $hullcolor){ 
                                            echo $hullcolor."<br /> "; 
                                          } 

                                This is where I was at before with the radios until you helped me out. It only outputs the value, so on the results page, all you see is the "575" and not:

                                Hull Color....$575

                                If you test the link I gave you, you will see "Hull Color....$575" because the "Hull color" is coded in HTML but the problem with that is that it is always there. I only want the Hull Color to be displayed when it is checked like the radio selections. Any help would be greatly appreciated!

                                  well, if hull color is just a yes or no... don't make it a multiple selection, then just do a check to see if hull_color is "" if it's empty, don't echo out Hull Color.....$575, if it isn't empty, echo it out... you'll need to take out the [] for the variable name to do this, then if you want deck color, any other color, just make a different variable name

                                  <?php
                                  if ($_POST['hull_color'] != "")
                                  {
                                  echo "Hull Color..........." . $_POST['hull_color'];
                                  }
                                  
                                  if ($_POST['deck_color'] != "")
                                  {
                                  echo "Deck Color..........." . $_POST['deck_color'];
                                  }
                                  ?>

                                    Thanks Stolzyboy, works like a charm! By the way, how's the weather in Fargo?