这应该是一个非常简单的修复,我根本无法弄清楚并需要帮助。我有一个记录提交记录的脚本。当用户单击提交按钮时,此记录提交会生成一个唯一 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.