Fixed register_globals

pull/1/head
root 16 years ago
parent 7b3ab5121e
commit f5c07defe5

@ -22,7 +22,7 @@
</tr>
<tr>
<td class="DataTD" width="125"><?=_("Email Address")?>: </td>
<td class="DataTD" width="125"><input type="text" name="email" value="<?=$_SESSION[lostpw][email]?>"></td>
<td class="DataTD" width="125"><input type="text" name="email" value="<?=array_key_exists('lostpw',$_SESSION)?sanitizeHTML($_SESSION['lostpw']['email']):""?>"></td>
</tr>
<tr>
<td class="DataTD"><?=_("Date of Birth")?><br>
@ -32,8 +32,8 @@
for($i = 1; $i <= 31; $i++)
{
echo "<option";
if($_SESSION[lostpw][day] == $i)
echo " selected";
if(array_key_exists('lostpw',$_SESSION) && $_SESSION['lostpw']['day'] == $i)
echo " selected=\"selected\"";
echo ">$i</option>";
}
?>
@ -43,13 +43,13 @@
for($i = 1; $i <= 12; $i++)
{
echo "<option value='$i'";
if($_SESSION[lostpw][month] == $i)
if(array_key_exists('lostpw',$_SESSION) && $_SESSION['lostpw']['month'] == $i)
echo " selected";
echo ">".ucwords(strftime("%B", mktime(0,0,0,$i,1,date("Y"))))."</option>";
}
?>
</select>
<input type="text" name="year" value="<?=$_SESSION[lostpw][year]?>" size="4"></nobr>
<input type="text" name="year" value="<?=array_key_exists('lostpw',$_SESSION)?sanitizeHTML($_SESSION['lostpw']['year']):""?>" size="4"></nobr>
</td>
</tr>
<tr>

Loading…
Cancel
Save