0

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

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by eefh01
0

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

Thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.