Синтаксическая ошибка

Discussion in 'PHP' started by kravch_v, 10 Nov 2011.

  1. kravch_v

    kravch_v Member

    Joined:
    1 Sep 2011
    Messages:
    134
    Likes Received:
    43
    Reputations:
    1
    Пишу авторег. аккаунтов на скорую руку, вот какая ошибка:
    Parse error: syntax error, unexpected T_STRING in Z:\home\test.ru\www\index.php on line 47

    47 строка:
    PHP:
    $postQ 'email=' $user '@ya.ru&pass1=' $password '&pass2=' $password '&capcha=' $otvet '&reg=' $ololo ');
    Где здесь ошибка? оО'
     
  2. попугай

    попугай Elder - Старейшина

    Joined:
    15 Jan 2008
    Messages:
    1,520
    Likes Received:
    401
    Reputations:
    196
    скобка
     
  3. kravch_v

    kravch_v Member

    Joined:
    1 Sep 2011
    Messages:
    134
    Likes Received:
    43
    Reputations:
    1
    Только скобка? И все?
    Т.е. так:
    PHP:
    $postQ 'email=' $user '@ya.ru&pass1=' $password '&pass2=' $password '&capcha=' $otvet '&reg=' $ololo .;  
     
  4. Skofield

    Skofield Elder - Старейшина

    Joined:
    27 Aug 2008
    Messages:
    960
    Likes Received:
    392
    Reputations:
    58
    $postQ = 'email=' . $user . '@ya.ru&pass1=' . $password . '&pass2=' . $password . '&capcha=' . $otvet . '&reg=' . $ololo . '';
     
  5. kravch_v

    kravch_v Member

    Joined:
    1 Sep 2011
    Messages:
    134
    Likes Received:
    43
    Reputations:
    1
    Спасибо!
     
  6. dpe_x

    dpe_x Elder - Старейшина

    Joined:
    8 Sep 2010
    Messages:
    155
    Likes Received:
    35
    Reputations:
    14
    ой бред)

    $postQ = 'email=' . $user . '@ya.ru&pass1=' . $password . '&pass2=' . $password . '&capcha=' . $otvet . '&reg=' . $ololo ;
     
    1 person likes this.
  7. Double777

    Double777 New Member

    Joined:
    17 Aug 2011
    Messages:
    3
    Likes Received:
    0
    Reputations:
    0
    не проще ли так
    $postQ ="email= [email protected]&pass1=$password&pass2=$password&capcha=$otvet&reg=$ololo";
     
  8. .::BARS::.

    .::BARS::. Elder - Старейшина

    Joined:
    13 Oct 2007
    Messages:
    379
    Likes Received:
    45
    Reputations:
    10
    не проще =))
     
  9. kravch_v

    kravch_v Member

    Joined:
    1 Sep 2011
    Messages:
    134
    Likes Received:
    43
    Reputations:
    1
    проблема уже давно решена :rolleyes: