Answer the question
In order to leave comments, you need to log in
Why does it get an error, what's wrong?
I get an error like this [Error]: {form1-›button1, Click} syntax error, unexpected T_IF, expecting ´,´ or ´;´ on line 3 Translation [Error]: {form1 for-"button" button1", Click} : syntax error, unexpected T_IF, expecting , or ; on line 3
Entire code
global $site;
if ( c("login")-›text=="" or c("password")-›text=="" or c("password2")-›text==""){ //-- Ошибка тут
messageDlg("Îäíî èëè íåñêîëüêî ïîëåé íå çàïîëíåíû!", mtError, MB_OK);
} else {
$login = c("login")-›text;
$p = c("password")-›text;
$p2 = c("password2")-›text;
$str = strlen(ñ("password")-›text);
if ($str‹6){
messageDlg("Ìèíèìàëüíàÿ äëèíà ïàðîëÿ 6!Ó âàñ $str!", mtError, MB_OK);
} else {
if ($p==$p2){
$url = "$site/users/$login/user.php";
$HTTP = @get_headers($url);
if ($HTTP[0]=="HTTP/1.1.404 Not Found"){
file_get_contenta("$site/usercr.php?username=" . urlencode(login) . "&password=" . urlencode($p));
} else {
messageDlg("Òàêîé ïîëëüçîâàòåëü óæå ñóùåñòâóåò.", mtError, MB_OK);
}
} else {
messageDlg("Ïàðîè íå ñîâïàäàþò!", mtError, MB_OK);
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question