Hi,

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.

Kiran

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

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.