Forum Moderators: coopster
$how_many = count($photographs);
//echo $how_many;
echo '<p><strong>Quantity chosen:</strong> <em>'.$how_many.'</em></p>'. "\n";
if ($how_many>0) {
echo '<p>You chose the following photograph/s: <strong>Now please select the size/s you would like</strong></p>'. "\n";
}
echo '<ul class="basic_gallery">'. "\n";
for ($i=0; $i<$how_many; $i++) {
echo '<li><a href="" ><img src="../order/photo/'.$photographs[$i].'" /></a>'. "\n";
echo '<input type="text" name="photographs[]" value = "'.$photographs[$i].'" />';
echo "<div id='options'> ". "\n";
echo "<ul>
<li><label>" . ($i+1) . '- ' . $photographs[$i] ."</label></li>
</ul> ". "\n";
echo '<ul class="photograph_size">';
echo "<li><h4>Selected Sizes:</h4></li>";
echo '<li><input type="text "name="large[]" value="'.$large[$i].'" /></li>';
echo '<li><input type="text "name="small[]" value="'.$small[$i]. '" /></li>';
echo "</ul>
</div>
</li>". "\n";
}
echo "</ul>". "\n";
Array
(
[0] => Array
(
[name] => img_34.jpg
[large] => 10 x 8
[small] =>
)
[1] => Array
(
[name] => img_221.jpg
[large] => 10 x 8
[small] => 6 x 4
)
Array(
[0] => Array(
[name] => name.ext
[size] => size_selected
)
[1] => Array(
[name] => name_2.ext
[size] => size_selected_2
)
)