|
下面是我的ACTION,我想PID参数取值为1到10随机取。现在只能取10 ,其他取不到,不知道那出现问题。
Action()
{
int i;
char str[100];
web_find("web_find",
"What=意见反馈",
LAST);
for(i=0;i<=3;i++)
{
itoa(i,str,10);
sprintf(str,"%d", i);
lr_save_string(str,"pid");
lr_output_message("pid=%s",lr_eval_string("{pid}"));
}
web_url("ssearch_2",
"URL=http://gouwu.zhou.com/ssearch?a=1&pid={pid}",
"Resource=0",
"RecContentType=text/html",
"Referer=http://gouwu.zhou.com/ssearch?w=%CA%D6%BB%FA&c=-1&st=15",
"Snapshot=t107.inf",
"Mode=HTML",
EXTRARES,
LAST);
lr_output_message("apid2");
return 0;
} |
|