Example: web_reg_save_param_attrib
This example shows the use of web_reg_save_param_attrib to save the value of a hidden form element inside the HTML page.
This example shows the use of web_reg_save_param_attrib to look for correlation values of a hidden form element inside the HTML page.
Example: <INPUT TYPE="HIDDEN" NAME="field1" VALUE="Usj3xEEneBBTcIi6IXNHBBaz7D7ytfDmmbgOKjVuc59C"> <p TYPE="HIDDEN" NAME="field2“ ID=“demo”>Usj3xEEneBBTcIi6IXNHBBaz7D7ytfDmmbgOKjVuc59C</p>
web_reg_save_param_attrib( "ParamName=corrparam1", "TagName=input", // case insensitive for the tag name or attribute name "Extract=value", "Name=field1", // case sensitive for the attribute value "Type=*", // use * to match any value for TYPE attribute. TYPE attribute must exist, otherwise the search will fail SEARCH_FILTERS, "IgnoreRedirections=No", LAST); web_reg_save_param_attrib( "ParamName=corrparam2", "TagName=p", // case insensitive for the tag name or attribute name "Extract=innerHTML", // extract the innerHTML instead of any attribute value, innerHTML is case insensitive "Name=field2", // case sensitive for the attribute value "Id=*", SEARCH_FILTERS, "IgnoreRedirections=No", LAST);