0

Good day

I want to write multiple response to my email, I get line 7

Please can anyone help please;

My code

<?php
$to = "info@apps4u.co.za";
$subject = "Contact Us";
$email = $_REQUEST ;

$q1 = "Feed back text:\n";
$q1 .= "$_REQUEST\n" ;
$q2 = "Who sent you:";
$q2 .= "$_REQUEST\n" ;

$name = $_REQUEST ;
$headers = "From: $name <$email>";
$whosentyou = $_REQUEST ;
$message = $q1 . "\n". $q2;
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>

Thank you

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by vincan
0

Good day
The error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Domains\apps4u.co.za\wwwroot\ServecisRequest.php on line 7

Soory I forgot to add the error.
<$q1 .= "$_REQUEST\n" ;>

Is this correct for Use code tags

Thank you

This topic has been dead for over six months. 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.