int i,count; char hotelID[10]; char hotelIDs[2000]="";
web_reg_save_param("param_hotelID", "LB=\"datelessSearch\":false,\"hotelId\":\"", "RB=\",\"hotelName\"", "ORD=All", "NOTFOUND=warning", LAST); //。。。省略http request
count = atoi(lr_eval_string("{param_hotelID_count}")); //lr_output_message("count is %d",count);
for (i=count; i>1; i--) {
sprintf(hotelID, "{param_hotelID_%i}",i); lr_save_string(lr_eval_string(hotelID),"param_hotelID");
strcat(hotelIDs,lr_eval_string("{param_hotelID}")); strcat(hotelIDs,",");
}
strcat(hotelIDs,lr_eval_string("{param_hotelID_1}")); lr_save_string(hotelIDs,"hotelID_All"); |