i am unable to concardinate i am getting error..

<?php
$subject = "You got a Project Invitation from ".echo $_SESSION['user_name'];

?>

Hi,

Please remove echo statement in concate.

i.e.

$subject = "You got a Project Invitation from ". $_SESSION['user_name'];
echo $subject;

Please check and let me know.

Thanks,
Ajay

example :-

<?php
$subject = "You got a Project Invitation from ". $_SESSION['user_name'];
echo $subject;
?>

commented: Please check previous posts, you are just repeating - this is becoming a habit -3

I need to send it to mail

$subject = "You got a Project Invitation from ".echo $_SESSION['user_name'];
mail($to, $subject, $message, $headers);

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.