这应该是一个非常简单的修复,我根本无法弄清楚并需要帮助。我有一个记录提交记录的脚本。当用户单击提交按钮时,此记录提交会生成唯一ID。生成的ID用于新表单。
过去我只需使用'web_reg_save_param'即可保存该值。但是,在这种情况下,在提交记录之前不会给出该值。所以我不能像过去那样从URL中捕获它。
以下记录的内容然后我已经包含了我尝试过的内容以及调试中的警告消息。如果需要进一步澄清,请告诉我。
提前谢谢你。
web_submit_data("subpage",
"Action=somewebsite.com/subpage",
"Method=POST",
"RecContentType=text/html",
"Referer=somewebsite.com/subpage?id=xxxxx1",
"Mode=HTML",
ITEMDATA,
//this value is what I need to be correlated
"Name=recordID", "Value=c39d54a59112fcb223978bb6869d47d2", ENDITEM,
//other values that are present on the form which can be reused
"Name=variable", "Value=someValue", ENDITEM,
LAST);
I've tried to do the following -
web_reg_save_param("ID","LB=recordID=","RB=&","Search=All","NotFound=ERROR",LAST);
web_submit_data("subpage",
"Action=somewebsite.com/subpage",
"Method=POST",
"RecContentType=text/html",
"Referer=somewebsite.com/subpage?id=xxxxx1",
"Mode=HTML",
ITEMDATA,
//this value is what I need to be correlated
"Name=recordID", "Value={ID}", ENDITEM,
//other values that are present on the form which can be reused
"Name=variable", "Value=someValue", ENDITEM,
LAST);
But the "ID" is coming up as blank.
Warning: The string 'ID' with parameter delimiters is not a parameter.
答案 0 :(得分:0)
我能够使用:
web_reg_save_param_ex(
"ParamName=recordID",
"LB=id=\"id\" value=\"",
"RB=\" type",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=No",
"RequestUrl=*/subpage*",
LAST);