Action ()
{
Char *str1;//= (char*) malloc (20);
Char str2[10];
Web_url ("Tologinpage",
"Url={url}/login",
"Targetframe=",
"Resource=0",
"Reccontenttype=text/html",
"Referer={url}/index",
"Snapshot=t3.inf",
"Mode=html",
Extrares,
"Url=/images/sprites_login.png", Enditem,
"Url=/images/login_ico.jpg", Enditem,
last);
Lr_start_transaction ("Login Now");
Web_submit_data ("Login.action",
"Action={url}/login/userlogin",
"Method=post",
"Targetframe=",
"Reccontenttype=text/json",
"Referer={url}/tologinpage",
"Snapshot=t5.inf",
"Mode=html",
ItemData,
"Name=username", "Value={username}", Enditem,
"Name=password", "Value={password}", Enditem,
"Name=autosession", "Value=false", Enditem,
"Name=verify", "value= Please enter the verification code", Enditem,
"Name=_global_session_duplicate_switch", "Value=true", Enditem,
"Name=_global_request_duplicate_key", "Value={duplicate_key}", Enditem,
Association information "VALUE=EECF72EC-C866-4BEB-8D96-B04215ECD72A"
"Name=_global_submit_type_key", "Value=ajax", Enditem,
last);
Str1=lr_eval_string ("{username}");
strncpy (str2,str1,3);
Lr_output_message ("str2=%s", str2);
Lr_save_string (str2, "str_name");
Web_reg_find ("Fail=notfound", "Search=all",
"Savecount=counts",
"Text={str_name}**! ",
last);
Web_url ("Index",
"Url={url_1}/index",
"Resource=0",
"Reccontenttype=text/html",
"Referer=",
"Snapshot=t78.inf",
"Mode=html",
last);
Lr_output_message ("user:%s", lr_eval_string ("{username}"));
Lr_end_transaction ("Login Now", Lr_auto);
return 0;
}
Copy to Google TranslateTranslation Results
Web_reg_find () query information as a variable