char pre_email[4];
char email[4];
//itoa(rand()%1000,pre_email,10);
strcpy(pre_email,lr_eval_string("{index}"));
strcat(pre_email,"@5.cn");
strcpy(email,lr_eval_string(pre_email));
lr_output_message("%s",email);
lr_save_string(email,"vemail");
Action()
{
char pre_email[4];
char email[4];
itoa(rand()%1000,pre_email,10);
strcat(pre_email,"@5.cn");
strcpy(email,lr_eval_string(pre_email));
//lr_output_message("%s",email);
lr_save_string(email,"vemail");
web_reg_save_param("emailVerifyCode",
"LB=绗�簩姝ワ細杈撳叆楠岃瘉鐮乕",
"RB=]",
LAST);
web_submit_data("regist",
"Action=http://192.168.1.101:40001/dangdang/user/regist.action",
"Method=POST",
ITEMDATA,
"Name=struts.token.name","Value=struts.token",ENDITEM,
"Name=struts.token","Value=DQK2074VVSDBY236HWNT2PSRFZ963QNE",ENDITEM,
"Name=user.email","Value={email}",ENDITEM,
"Name=user.nickname","Value={email}",ENDITEM,
"Name=user.password","Value=111111",ENDITEM,
"Name=password1","Value=111111",ENDITEM,
"Name=validateCode","Value=1",ENDITEM,
LAST);
web_submit_data("verify",
"Action=http://192.168.1.101:40001/dangdang/user/verify.action",
"Method=POST",
ITEMDATA,
"Name=struts.token.name","Value=struts.token",ENDITEM,
"Name=struts.token","Value=DQK2074VVSDBY236HWNT2PSRFZ963QNE",ENDITEM,
"Name=emailVerifyCode","Value={emailVerifyCode}",ENDITEM,
LAST);
return 0;
}