-
Help with some php
I am fairly new with php and im just basically creating simple scripts now and then. Anyway i can't seem to fix this syntax error, it's most likely a simple fix but oh well :).
I am making a comment system, a basic one where the user enter's his/her name & their message and displays it.
Heres the line which causes an error:
Code:
$outputstring = "Name: " ,$name, "<br> Comment:<br> " ,$message, "<br>";
and this is the error i receive:
Code:
Parse error: syntax error, unexpected ','
Thanks alot
-
Code:
$outputstring = "Name: " . $name ."<br> Comment:<br> " . $message ."<br>";
-