collbrankid Posted July 16, 2007 Share Posted July 16, 2007 What is wrong with my feedback.php syntax? I'm getting all sorts of messages from my host server when I try inputing info. Thanks in advance. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/u2/nwkaplan30/html/feedback.php on line 114 Parse error: syntax error, unexpected T_VARIABLE in /home/u2/nwkaplan30/html/feedback.php on line 115 $messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n" . "Name of sender: $name\n" . "Email of sender: $email\n" . "College/University: $college\n". "Major: $major\n" . "Classyear: {$_POST['classyear']}\n" . "Find: {$_POST['find']}" Line 114 "-----------What would you like to get our of the New Orleans Pilot Trip?-------------\n\n". Line 115 $comments . "\n\n------------------------------------------------------------\n" ; mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" ); header( "Location: $thankyouurl" ); exit ; ?> Link to comment https://forums.phpfreaks.com/topic/60128-what-does-unexpected-t-constant-encapsed-string-mean/ Share on other sites More sharing options...
trq Posted July 16, 2007 Share Posted July 16, 2007 Your missing a dot. "Find: {$_POST['find']}" . Link to comment https://forums.phpfreaks.com/topic/60128-what-does-unexpected-t-constant-encapsed-string-mean/#findComment-299115 Share on other sites More sharing options...
tapos Posted July 16, 2007 Share Posted July 16, 2007 "Classyear: {$_POST['classyear']}\n" . "Find: {$_POST['find']}" This should be "Classyear: {".$_POST['classyear']."}\n". "Find: {".$_POST['find']."}" or "Classyear: {$_POST[classyear]}\n" . "Find: {$_POST[find]}" -- Tapos Pal Link to comment https://forums.phpfreaks.com/topic/60128-what-does-unexpected-t-constant-encapsed-string-mean/#findComment-299128 Share on other sites More sharing options...
rameshfaj Posted July 16, 2007 Share Posted July 16, 2007 If inserting the dot doesnot solve the problem then u can try using only single quote or no quote at all if the POST command is inside double quote. Link to comment https://forums.phpfreaks.com/topic/60128-what-does-unexpected-t-constant-encapsed-string-mean/#findComment-299312 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.