Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   Ошибка Parse error (https://forum.antichat.xyz/showthread.php?t=138069)

programming 29.08.2009 11:08

Ошибка Parse error
 
При выполнении скрипта выползает ошибка.. Не могу понять в чём ошибка..
PHP код:

$result post('http://example.com/registration/','username=$_POST['login']&password=$_POST['password']&email=$_POST['email']&fullname=''&captcha_0=$_POST['captchaid']&captcha_1=$_POST['captcha']&send_news=on&send_mess=on&accept_terms=on&submit=$_POST['valsub']','http://example.com/registration/'); 

Ошибка:
Код:

Parse error: syntax error, unexpected T_STRING in  on line 26

wildshaman 29.08.2009 11:16

Код:

$result = post('http://example.com/registration/',"username=$_POST['login']&password=$_POST['password']&email=$_POST['email']&fullname=''&captcha_0=$_POST['captchaid']&captcha_1=$_POST['captcha']&send_news=on&send_mess=on&accept_terms=on&submit=$_POST['valsub']",'http://example.com/registration/');

geforse 29.08.2009 11:19

PHP код:

$result post('http://example.com/registration/','username='.$_POST['login'].'&password='.$_POST['password'].'&email='.$_POST['email'].'&fullname=''&captcha_0='.$_POST['captchaid'].'&captcha_1='.$_POST['captcha'].'&send_news=on&send_mess=on&accept_terms=on&submit='.$_POST['valsub'],'http://example.com/registration/'); 

я тебе код давал, там всё точно также.
Смотри внимательнее

programming 29.08.2009 11:39

Ну поставил везде так..: '.$_POST['captchaid'].'
Но результат это не изменило.. Быть может нужно убрать кавычки отсюда: fullname=''?

programming 29.08.2009 11:47

Всё.. Проблема решена. Нужно было убрать кавычки после fullname..


Время: 05:11