A simple Starter question

Hi,

I am a starter at PHP. I need to ask a simple help from you.

I have a form. In the form i have two fields. One is txtday which has a drop down of 31 days. and the next is txtmonth which has a drop down of 12 months. Now I want to display different pictures on the basis of their date of birth. For that I have created 365 pictures. Can you please help me how can i do that, all the pictures are in a folder.

Thanks in advance.

You can do something like this:
[php]<?php
if(isset($_POST[‘txtday’]) and isset($_POST[‘txtmonth’])){
$dt=mktime(0,0,0,$_POST[‘txtmonth’],$_POST[‘txtday’],date(‘Y’));
echo ‘’;
}
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service