Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8781691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:22:13+00:00 2026-06-13T20:22:13+00:00

I need to extract the pricing data from a form. The form contain several

  • 0

I need to extract the pricing data from a form. The form contain several dropdown options. All combo of options must be extracted.

Example of the form dropdown:

size => 1, 2, 3, 4, 5
type => 1, 2, 3, 4
color => 1, 2, 3
units => 1, 2, 3, 4, 5, 6, 7

So this particular product has 420 possible configurations size * type * color * units

How do I write some some sort of loop which will get all possible combinations?

TAG POS=1 TYPE=SELECT FORM=ACTION:/food/getPrice.do ATTR=NAME:size CONTENT=#1

By the way trying to use imacros to select an option by index as shown in the example above does not work. I am forced to select by specifying the value (such as: %1)

I also tried SET !DATASOURCE and imported a CSV file but it didn’t loop through as I need it to.

–Just to clarify — I need this kind of output (doesn’t have to be in this order, but MUST output all possible combinations):

size => 1 type => 1 color => 1 units => 1
size => 1 type => 2 color => 1 units => 1
size => 1 type => 2 color => 2 units => 1
size => 1 type => 2 color => 2 units => 2
size => 1 type => 2 color => 2 units => 2
size => 1 type => 3 color => 1 units => 1
   . . .

–Side Note–
If you know of how I can run this imacro from a shared server (or EC2) please advise. Thanks for the help! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:22:14+00:00Added an answer on June 13, 2026 at 8:22 pm

    You’re looking for the cartesian product, which is described here in PHP: PHP 2D Array output all combinations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need extract data from a string. Heres an example: Mozilla/5.0 (Macintosh; U; PPC
I need to extract multiple text/dropdown list fields from an asp.net form and format
I need to extract the following data from a txt file(displayed in link),then save
I need extract data from a JSON array, format '[[[1,2,3]],[[1,2,3],[1,2,3]],string]' in Qt. logically it's
I need to extract some data from a XML fetched online and to create
I need to extract data from xml file and plot graphs of: depth vs
I need to extract data from the tables RawData and RawDataMeter and sum the
I need to extract number from string like <p id=example>etc etc(5)</p> <p id=example2>etc etc(-5)</p>
I need to extract the src element from all image tags in an HTML
I need to extract records from a table, copy the data to a second

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.