数组内容的参数化问题

int i;
static char *type[]={"A'","A"};
lr_save_string(type[i],"tmp");
 web_submit_data("inputactive.do_4",
  "Action=http://192.168.0.227:8080/dsaes/inputactive.do",
  "Method=POST",
  "RecContentType=text/html",
  "Referer=http://192.168.0.227:8080/dsaes/inputactive.do",
  "Snapshot=t16.inf",
  "Mode=HTML",
  ITEMDATA,
  "Name=actionMethod", "Value=singleInput", ENDITEM,
  "Name=schoolid", "Value=402880630808fc6c010808fd32300002", ENDITEM,
  "Name=schoolname", "Value=测试小学", ENDITEM,
  "Name=grade_hidden", "Value=2012001,1", ENDITEM,
  "Name=select_grade", "Value=2012001,1", ENDITEM,
  "Name=class_hidden", "Value=2012001,1,1", ENDITEM,
  "Name=select_class", "Value=2012001,1,1", ENDITEM,
  "Name=select_classall", "Value=2012001,1,1", ENDITEM,
  "Name=studentids", "Value=402880630808fc6c010808ffbc070009", ENDITEM,
  "Name=studentids", "Value=402880630808fc6c010808ffbc36000a", ENDITEM,
  "Name=checkbox", "Value=checkbox", ENDITEM,
  "Name=resunitid", "Value=402880630808fc6c010808fd323f0003", ENDITEM,
  "Name=resunitInputType", "Value=select", ENDITEM,
  "Name=resunitname", "Value=测试小学", ENDITEM,
  "Name=resunitnameInput", "Value=", ENDITEM,
  "Name=evaCritId", "Value={id}", ENDITEM,
  "Name=gradeSort", "Value={tmp}", ENDITEM,
  "Name=actionDate", "Value=2005-12-08", ENDITEM,
  "Name=actionDays", "Value=1", ENDITEM,
  "Name=actionTheme", "Value={bt}", ENDITEM,
  "Name=disp_grade_all", "Value=0", ENDITEM,
  "Name=disp_class_all", "Value=0", ENDITEM,
  EXTRARES,
  "Url=images/back.gif", ENDITEM,
  LAST);




本文转自 fish_yy 51CTO博客,原文链接:http://blog.51cto.com/tester2test/139568,如需转载请自行联系原作者
上一篇:python下运行报"SyntaxError: Non-ASCII character '/xe6' "错误解决方法


下一篇:lzg_ad:XPE的发布与部署步骤详解