I have been breaking my head to solve this. May be this is very simple.

I am trying to convert date value to string and to merge with another string.

$dt=$_POST['formdate']; //$dt is in format of Y-m-d
$msg = "The date entered is ".$dt;

echo $msg;

But it is printing $dt as blank.

print_r($_POST) prints normally as date format

Array ( [formdate] => 2010-08-24 ...)

Please help me.

Thanks in advance.


Got the issue resolved now!! A small mistake on using variables.