Hello;
i would like to enter my birthday into textbox.
but i want to input only numeric characters and since it's gonna specify just days i would like to enter a number which is not larger than 31 not smaller than 1.
i couldnt handle this code. can some one help me?
these are my 2 php pages.
Client side:
echo
'<form action="welcome.php" method="post">
İsim: <input type="text" name="isim" /><br> //name
Soyisim: <input type="text" name="soyisim" /><br> //surname
Doğum Tarihi: <input type="value" size="1" maxlength="2" name="day" /> / <input type="value" size="1" maxlength="2" name="month" /> / <input type="value" size="2" maxlength="4" name="year" />
'
echo '<input type="submit" />
</form>';
Server side:
$isim=$_POST["isim"];
$soyisim=$_POST["soyisim"];
$dogum_gun=$_POST["day"];
$dogum_ay=$_POST["month"];
$dogum_yil=$_POST["year"];
echo "welcome:".$isim." ".$soyisim."<br>";