Hello friends ,
I am developing a online library system and this is a form for creating reports of the issued books.
This is the html code for the form
<form action="issued_books.php" method="POST">
<select name="year" id="year" >
<option>1998</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
</select>
<input type="text" name="month" size=2 maxlength="2" />
<input type="text" name="day" size=2 maxlength="2" />
<input type="submit" value="submit" name="submit" />
</form>
in PHP handler there is a code
$year = $_POST['year'];
echo "$year";
$month = $_POST['month'];
echo "$month";
$day = $_POST['day'];
echo "$day";
the output for the variable day which i am getting is
230 even when i have input the value 23
I am using EasyPHP in Windows XP
Thanks for reading my problem.