i am unable to concardinate i am getting error..

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

?>

Recommended Answers

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

Jump to Post

All 4 Replies

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.