Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Location
    London, England
    Posts
    696
    Tokens
    0

    Default 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
    ;veni vidi vici
    ;i came, i saw, i ownt

  2. #2
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default

    Code:
    $outputstring = "Name: " . $name ."<br> Comment:<br> " . $message ."<br>";


  3. #3
    Join Date
    Apr 2006
    Location
    London, England
    Posts
    696
    Tokens
    0

    Default

    thanks
    ;veni vidi vici
    ;i came, i saw, i ownt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •