You are on page 1of 1

Example for capturing an array of dynamic values:

Action()
{

int i;
int ncount;
char ParamName[100];

web_set_sockets_option("SSL_VERSION", "TLS");

web_reg_save_param("trackingno","LB=;","RB= (NTN 0430)","search=All","ord=all",LAST);

web_submit_data("barcode.pl",
"Action=http://qtetools.rmtc.fedex.com/barcode/cgi-bin/barcode.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://qtetools.rmtc.fedex.com/barcode/html/barcode.shtml",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=formcode", "Value=0430", ENDITEM,
"Name=count", "Value=10", ENDITEM,
"Name=narrow", "Value=2", ENDITEM,
LAST);

ncount= atoi(lr_eval_string("{trackingno_count}"));

for (i =1;i <= ncount;i++)


{
sprintf(ParamName, "{trackingno_%d}", i);

lr_output_message("Value of %s: %s",ParamName,lr_eval_string(ParamName));


}
return 0;
}

You might also like