php get value month,day,year
Posted: Wed Apr 23, 2008 8:29 pm
Date of purchase: <?php datex(); $purchasemonth=$month; $purchaseday=$day; $purchaseyear=$year; ?>
i have the code above the function datepurchase are drowdowns that display month, day and year... i have no prob when i access the $month, $day and $year because these are the values directy from the name of the dropdown...but im storing them in another variable because other stuff will also use the same function... for example
Date of payment <?php datex(); $paymentmonth=$month; $paymentday=$day; $paymentyear=$year; ?>
when i submit the page and go to the other page....
it doesnt capture the values in $purchasemonth etc......
but it can capture the values $month.......etc....
i have the code above the function datepurchase are drowdowns that display month, day and year... i have no prob when i access the $month, $day and $year because these are the values directy from the name of the dropdown...but im storing them in another variable because other stuff will also use the same function... for example
Date of payment <?php datex(); $paymentmonth=$month; $paymentday=$day; $paymentyear=$year; ?>
when i submit the page and go to the other page....
it doesnt capture the values in $purchasemonth etc......
but it can capture the values $month.......etc....