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

  • SEARCH
  • Home
  • 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 8486899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:04:59+00:00 2026-06-10T21:04:59+00:00

I got a question that is probably stupid, but I’m not able to make

  • 0

I got a question that is probably stupid, but I’m not able to make it work…

I’m submitting a form which contains inputs like this:

<input type="hidden" id="hidden0" name="Options2" value="0" />
<input type="hidden" id="hidden1" name="Options2" value="30" />
<input type="hidden" id="hidden2" name="Options2" value="4" />
<input type="hidden" id="hidden3" name="Options2" value="-1" />
<input type="hidden" id="hidden4" name="Options2" value="-1" />
<input type="hidden" id="hidden5" name="Options2" value="-1" />
<input type="hidden" id="hidden6" name="Options2" value="-1" />
<input type="hidden" id="hidden7" name="Options2" value="-1" />

Note that these 8 inputs are created dynamically. When submit is clicked, I get all the inputs created dynamically with the name=”Options” and put the values into some general inputs.

var inputs = document.getElementsByName("Options"+cpt);
for( var g = 0; g < 8; g++ )
{
    document.all.Options[g].value = inputs[g].value;
}

When I receive the form, I got this line:

var arrayOption = Request.Form("Options");

If I Response.Write(arrayOption), I can see the result: 0, 30, 4, -1, etc…
I’m trying to get all values inside a loop like this:

for (var k = 0; k < arrayOption.count; k++) {
    Response.Write(arrayOption[k]);
}

In this case, arrayOption[k] is undefined and I don’t know why. I also noticed that arrayOption.length is not working (this is why I used .count). It looks like arrayOption is not a true array, so I tried to split, but Object doesn’t support this property or method. What’s wrong with all this?

  • 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-10T21:05:00+00:00Added an answer on June 10, 2026 at 9:05 pm

    Well that looks like ASP Classic + Server side JScript so you need an Enumerator() to walk the collection, E.g.

    for (var e = new Enumerator(Request.Form); !e.atEnd(); e.moveNext())
         Response.Write(e.item() + "=" + Request.Form(e.item()) + "<br>");
    

    Enumerates all the post data

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

Sidebar

Related Questions

This is probably a stupid question, but... I've got an application that sends emails
I've got a question that probably has a pretty simple answer, but I didn't
Probably a stupid question, but it's an idle curiosity for me. I've got a
I've got a question that might sound strange. We are using node.js, but the
Probably a stupid question but I'm still trying to wrap my head around nHibernate.
I'm quite new to nHibernate, so this'll probably be a pretty stupid question. But
Stupid question. I've got a project that I'm working on in PHP; it's a
This is probably a stupid question, but I'm really struggling with this concept. I'm
I've got a basic PIVOT-question here that probably won't cause you gurus any trouble:
I got a question, probably very simple, but whatever. When registering an event listener

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.