<?php
$date = array(
'1'=>'1',
'2'=>'2',
'3'=>'3',
'4'=>'4',
'5'=>'5',
'6'=>'6',
'7'=>'7',
'8'=>'8',
'9'=>'9',
'10'=>'10',
'11'=>'11',
'12'=>'12',
'13'=>'13',
'14'=>'14',
'15'=>'15',
'16'=>'16',
'17'=>'17',
'18'=>'18',
'19'=>'19',
'20'=>'20',
'21'=>'21',
'22'=>'22',
'23'=>'23',
'24'=>'24',
'25'=>'25',
'26'=>'26',
'27'=>'27',
'28'=>'28',
'29'=>'29',
'30'=>'30',
'31'=>'31');
?>
<html lang="us-en" xml:lang="us-en">
<head>
<style>
.form{
margin:10px auto;
}
.form label, select{
display:inline-block;
float:left;
}
.form label{
width:75px;
}
.body{
width:250px;
height:50px;
background-color:#C33;
padding:20 20 20 20;
margin:300px auto;
}
</style>
</head>
<body>
<div class="body">
<form class="form">
<div><label for="dates"><b>date:</b></label></div>
<div><select name="date" id="dates">
<?php
foreach($date as $dates => $datenow)
{
echo'<option value="'.$dates.'">'.$datenow.'</option>';
}
?>
</select>
</div>
</form>
</div>
</body>
</html>
Date List Static Array with PHP Function Drop Down
Date list static array can help you to design contact form in offline mood. With this code, you can add dates in your form without using API system.
Labels:
Download PHP Scripts
Post a Comment
Give your reviews about this blog. Leave your comments. what do you think about this post?
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.
---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards