Hello, i had a question about how php works when parshing data. I have a select form that I want to add another option when the month roles around. Right now I have a for loop to calc. the distance between month numbers. And I keep getting a error message....aghhh. help!! here is the code that I am using (i am new to php so please excuse the messing coding)::: 🙂 And thanks in advance..........-alan
<?php
$hour = date("h");
$hour = $hour+3;
$min = date("i");
$ampm = date("a");
$docloc = date("mjy");
$folderloc = date("my");
$month = date("m");
$year = date("y");
$numbmon = $month-4;
print"<head><title>$folderloc/$docloc.html</title></head><body>";
print "$folderloc/";
print "$docloc.html <BR>";
print "$hour:$min$ampm";
print"<Br>Folder Selection <form><select name=\"select\">
<option value=\"$folderloc/\"selected>$folderloc</option>";
for ($i=1; $i<$numbmon; i++){
$monther=i$+4;
print"<option value=\"$monther$year/\">$monther$year</option>;
}
print"</select></form><br>";
?>
</body>