Hi there NogDog,
Seems I may have muddled something up. Here is the way I implemented it:
<select name='dob_y'>");
foreach(range(1940,2000), as $dob_y){
$selected = (isset($_SESSION['dob_y'] and $_SESSION['dob_y'] == $dob_y) ? " selected='selected'" : '';
echo "<option$selected>$dob_y</option>\n";
}
echo("</select>");
This is the error I get:
Parse error: syntax error, unexpected ','
The line it's in reference to:
foreach(range(1940,2000), as $dob_y){
Any help would be greatly appreciated.
thanks,
json