please help me with my problem please

prosperer888

Client
Регистрация
15.09.2011
Сообщения
157
Благодарностей
4
Баллы
18
I still learning using code creator so i need some help here about how can i enter the same password in confirm your password box same as i enter on the 1st password box.....like in project maker we just copy execution result in 1st password box and enter the result we copy in confirm ur pass box.....but how i can do that in code creator and im using php in codecreator...
 

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63
I still learning using code creator so i need some help here about how can i enter the same password in confirm your password box same as i enter on the 1st password box.....like in project maker we just copy execution result in 1st password box and enter the result we copy in confirm ur pass box.....but how i can do that in code creator and im using php in codecreator...
PHP:
// generation of a password
$password = $instance->RiseMacros("Random.Text", array( "10", "cd" ));
        
// find the field of 1st password
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByName("Passwd");
if ($he->IsVoid) {
    $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildById("Passwd");
}
if ($he->IsVoid) {
    $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByAttribute("input:password", "fulltag", "input:password", "text", 0);
}
if ($he->IsVoid) return -1;

// set the 1st password
$he->SetValue($password, true);

// find the field of confirm password
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByName("PasswdAgain");
if ($he->IsVoid) {
    $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildById("PasswdAgain");
}
if ($he->IsVoid) {
    $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByTag("form", 0)->FindChildByAttribute("input:password", "fulltag", "input:password", "text", 1);
}
if ($he->IsVoid) return -1;
        
// set the confirm password
$he->SetValue($password, true);
 
  • Спасибо
Реакции: prosperer888

prosperer888

Client
Регистрация
15.09.2011
Сообщения
157
Благодарностей
4
Баллы
18
Yeah :-) that works :-) thanks alot shade :az:
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)