循环打印web_reg_save_param保存的参数

来源:互联网 发布:mac 电源设置 编辑:程序博客网 时间:2024/05/16 04:46

Action()
{
    char buffer[128] = {0};
 int j;
    int i;

  web_reg_save_param("param1",
  "LB=Content-Length: ",
  "RB=/r/n""",
  "NotFound=ERROR",
     "Ord=all",
  "Search=Headers",
  LAST);

 web_url("www.hao123.com",
  "URL=http://www.hao123.com/",
  "Resource=0",
  "RecContentType=text/html",
  "Referer=",
  "Snapshot=t2.inf",
  "Mode=HTML",
  LAST);

 //lr_save_string(lr_eval_string("{param1_count}"),"j");
   j=atoi(lr_eval_string("{param1_count}"));
   lr_output_message("the j is %d",j);

  for(i=1;i<=atoi(lr_eval_string("{param1_count}"));i++)
   {

   sprintf( buffer, "{param1_%d}", i);
     lr_output_message("the conut is %s.",lr_eval_string(buffer));

    }

  return 0;

 

原创粉丝点击