In my html form I have 3 dropdown menus for date of birth, day menu, month menu and year menu.
I want to collect day value from day menu,
month value from month menu,
year from year menu.
in php file I wrote for collecting the date of birth data; but it didn't work.
$date = $_POST['day'] . "-" . $_POST['month'] . "-" . $_POST['year'];
Help please.
Well, it seems either you didn't post the data (did you use action="post"?) or the selects don't have a name attribute. But if neither fixes solve your problem, maybe you could post the rest of your PHP code and your HTML code too.
a simple example for you too learn from :)