I am doing the following in my PHP
public $message = "<p>A new user has requested to signup for Company Name</p>
<p><strong>Name:</strong>". $name ."</p>
<p><strong>Email Address:</strong>" . $email . "</p>
<p><strong>Contact Number:</strong>" . $contact_number . "</p>
<p>Please check the attached file, for further details.</p>
<p>Thanks,<br/>Company Name Email Centre</p>";
As you can see I am tring to create a small segment of HTML interspersed with some PHP variables, however I am getting the following error,
Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’
It says this on line 31 which is the second <p> tag, however I cannot see a problem
1 Answer