In following function:
function dateSelect($monthname,$dayname,$yearname) {
echo "rs: " . $monthname;
dropdownDateSelect($monthName, $dayName, $yearName);
}
$monthname
gets echoed out correctly. However, it is empty inside function dropdownDateSelect
. I am not sure why. I am getting "Variable $monthName
seems to be uninitialized" error message in Netbeans IDE
.
function dropdownDateSelect($monthName, $dayName, $yearName){
echo "rss: " . $monthName;
}
Now in"rss: $monthName"
, $monthName
is empty.
Could you elaborate why this is happening and how I can pass $monthName
to dropdownDateSelect
function?
Thank you.