$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
$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/');
$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/');