I have fixed your problem by grabbing your code and fiddling around with it on my dreamweaver and testing it out on my local webserver and found the problems. This code is the fixed version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Refining Yield Calculator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h2>Refining Yield Calculator</h2>
<form method="post" action="refining.php">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td width="150">
<b>Station Equipment</b>
</td>
<td width="100">
<?php
$s_equip = array('75%' => 0.75, '50%' => 0.5, '40%' => 0.4, '35%' => 0.35, '32%' => 0.32, '30%' => 0.30);
$refine_sk = array('Level 0' => 0, 'Level 1' => 1, 'Level 2' => 2, 'Level 3' => 3, 'Level 4'=> 4, 'Level 5' => 5);
$ref_eff_sk = array('Level 0'=> 0, 'Level 1' => 1, 'Level 2' => 2, 'Level 3' => 3, 'Level 4'=> 4, 'Level 5' => 5);
$ore_pro_sk = array('Level 0'=> 0, 'Level 1' => 1, 'Level 2' => 2, 'Level 3' => 3, 'Level 4'=> 4, 'Level 5' => 5);
?>
<select name="s_equip">
<?php
foreach($s_equip as $key => $value){
echo '<option value="'.$value.'"';
if($_POST['s_equip'] == $value) echo 'selected="selected"';
echo '>'.$key.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td>
<b>Refining Skill</b>
</td>
<td>
<select name="refine_sk">
<?php
foreach($refine_sk as $key => $value){
echo '<option value="'.$value.'"';
if($_POST['refine_sk'] == $value) echo 'selected="selected"';
echo '>'.$key.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td>
<b>Refinery Efficiency Skill</b>
</td>
<td>
<select name="ref_eff_sk">
<?php
foreach($ref_eff_sk as $key => $value){
echo '<option value="'.$value.'"';
if($_POST['ref_eff_sk'] == $value) echo 'selected="selected"';
echo '>'.$key.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td>
<b>Ore Processing Skill</b>
</td>
<td>
<select name="ore_pro_sk">
<?php
foreach($ore_pro_sk as $key => $value){
echo '<option value="'.$value.'"';
if($_POST['ore_pro_sk'] == $value) echo 'selected="selected"';
echo '>'.$key.'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td>
<b>Total</b>
</td>
<td>
<b>
<?php
$total = $_POST['s_equip'] + $_POST['refine_sk'] + $_POST['ref_eff_sk'] + $_POST['ore_pro_sk'];
echo $total;
?>
%</b>
<tr>
<th colspan="2"><input type="submit" value="Calculate"></th>
</tr>
</table>
</form>
</body>
</html>
Your problem was with your foreach statement and it was basically my fault for not rechecking the code I gave you.
[php]
<?php
foreach($ore_pro_sk as $key => $value){
***echo ''.$key.'';
}
[/php]
The line with the *'s is wrong. If you take a look at the new script at those section you'll realize how I fixed it. Also just to let you know in the calculation part of the script you had a $POST instead of $_POST but it's all fixed. Let me know if you have any other problems.