According to the value of count variable ($count = 3)
, I need to get output like this.
$color_1 = $_POST["color-1"];
$color_2 = $_POST["color-2"];
$color_3 = $_POST["color-3"];
I tried this method but it did not work.
for ($i = 1; $i <= $count; $i++) {
$color_.$i = $_POST["color-.$i"];
}
Thanks so much for your helps & interestings.