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 9094779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:26:01+00:00 2026-06-16T23:26:01+00:00

I try to generate some square matrix, and need to send data in post

  • 0

I try to generate some square matrix, and need to send data in post method, I found solution with javascript and form, but all time new form create new line. Othervise I move opening form block out of iteration but it make just 1 variable when i presed on any number, it send always 1 in “place” field.

<%
        for (int i = 1; i <= 20; i++) { %>

            <form name="submitForm" method="POST" action="buy">
            <%
                for (int j = 1; j <= 20; j++) {%>
                    <a href="javascript:;" onclick="parentNode.submit();"> <%=j%> </a>
                    <input type="hidden" name="row" value="<%=i%>"/>
                    <input type="hidden" name="place" value="<%=j%>"/>
                    <% if (j == 20) { %>
                        <p>
                    <%}%>
                <%}%>
            </form>
        <%}
%>
  • 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-16T23:26:03+00:00Added an answer on June 16, 2026 at 11:26 pm

    Use CSS to make sure the form displays as an inline element, not a block element which has a line-break before and after it.

    <style>form { display: inline }</style>
    

    or

    <form name="submitForm" method="POST" action="buy" style="display:inline">
    

    Some pitfalls are discussed in How to display HTML <FORM> as inline element? since the open <form> tag still implies the end of a paragraph element that otherwise appears to contain it.

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

Sidebar

Related Questions

I'm trying to generate some XML using XML::Builder, but my element names need to
i need some help with this, i'm trying to generate some html with javascript,
I try to generate title in all levels of the officers but I get
I try to debug a javascript function called from Generate Thumbnails plugin in Wordpress.
In my program I generate classes dynamically but when I try: String[] args =
I try to generate some xml files ( TMX ) on our servers. The
i try to generate some codes. i face to face delegates. Everythings is ok.(Look
Say I had an open-source project which I wanted to try and generate some
I am trying to generate some HTML code from a VB.NET Web Method and
I try to generate some Excel sheets in Java application using JExcelAPI (v. 2.6.3)

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.