Code: Select all
<?php
foreach($_POST['array'] as $key => $value) {
echo $value."<br />";
}
?>Suppose I check Calea. On the post page, i include a file with a bunch of variables, and Calea is assigned the price of 5. How do I see if calea is in the array, and then add 5 dollars to a sum if it is?