well. i know it works because i was calling it from a test file to test it initially. this is the testfile:
Code:
<?php
include("/home/joshua/includes/fyd.incs.php"); # includes file
$month=$_POST['month'];
if(!isset($month)){
echo <<<END
<html><head></head><body>
<form action="$_SERVER[PHP_SELF]" method="POST">
<input type="text" name="month">
<input type="submit" value="check">
</form>
</body></html>
END;
}else{
$array=array('00'=>'Month', '01'=>'January', '02'=>'February', '03'=>'March', '04'=>'April', '05'=>'May', '06'=>'June', '07'=>'July', '08'=>'August', '09'=>'September', '10'=>'October', '11'=>'November', '12'=>'December');
$selected=$_POST['month'];
$list=array_to_options($array, $_POST['month']);
echo '<select name="test" size="1">'.$list.'</select>';
}
?>
note: the testfile NEVER genereated an error of ANY kind
NOTE 2: THE ARRAYS ARE DEFINED BELOW THE FUNCTION IN THE SAME FILE, THUS IF THE FUNCTION IS BEING INCLUDED, SO ARE THEY, AND TWO OF THEM ARE IN THE INITAL POST. THE CALLS IN THE TWO FILES THAT USE THEM ARE LIKE THIS: $eyecoloroptlist=array_to_options($eyecolor, $_POST['eye']);
internships are for the inexperienced, yet corproations award them only to those with experience. then corporations complain about the lack of experience in the emerging workforce.
corporations need to get logical.