4 Replies Latest reply on Apr 2, 2013 6:18 AM by Fabiano Magno Pechibella

    Loop PHP to CF, how make?

    Fabiano Magno Pechibella Level 1

      Guys,

       

      I have the script PHP below.

       

      How I write this script in ColdFusion, sorry for the dummie's ask

       

      <?php

                if(isset($_POST[“color”])) {          

                   for($i = 0; $i < count($_POST[“color”]); $i++) {

                        echo “The color “.$_POST[“color”][$i].” was selected!<br />”;

                    }

                } else {

                    echo “blablablablablablablabla”

                }

      ?>

       

      [ ]'s