How To Make Date Form With PHP

Saturday, May 19, 2012

If you want to know about how to make date form with java, i'll give you an example and you can try with your self.. The first, you must have a XAMPP than installed on your pc, and then you must activate your xampp server (Apache and Mysql) as usual.

You should activate your xampp. It must "running"

 Here is the code :

<form action="yourphp" method="POST">
<select id="day" name="day">
<?
$i=0;
for ($i=1;$i<=30;$i++) {
echo '<option>';
printf("%02d",$i);
echo'</option>';
}
?> </select>
<select id="month" name="month">';
<?
$name = array("january","February","Maret","April","Mei","June","July","August","September","October","November","December");
$i = 0;
while($i<12)
{
echo " <option value=".$name[$i].">".$name[$i]."</option>";
$i++;
?>
</select>
<select id="year" name="year">';
<?
for ($i=1990;$i<=2020;$i++) {
echo '<option>'.$i.'</option>';
}
?>
</select>
</form>

Save that blue code with name extention (.php). 

Access your file location with your web browser from localhost

It will display form like this : 

That's all about how to make date form with php. Hope you understand about my explanation to you. Thank You.

4 comments:

Anonymous said...

Thanks for such a great article here. I was searching for something like this for quite a long time and at last I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays. Well written article Thank You for Sharing with Us project management courses in chennai | pmp training class in chennai | pmp training fee | project management training certification | project management training in chennai | project management certification online |

Rajesh said...

thanks for sharing this message useful to us
ws training in Bangalore
Amazon web services training in Bangalore
best AWS Training institute in Bangalore
Aws training institutes in Bangalore
Aws certification course in Bangalore
DevOps training in Bangalore
Devops training institutes in Bangalore
develops certification course in Bangalore

Aswi said...

AFS has appreciable potential in solving the issue of the IGST refund pending. The IGST refund process for goods is straightforward. However, while this process of IGST refund, many applicants find it is in the pending stage. afs.ind.in

IAS Coaching in DELH
i love your bloge and It's very help full for me
ias cooaching

Post a Comment

 
 
 
 
Copyright © Programming Tricks