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

The Archive Base Latest Questions

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

I have the following table code that each row contains a form. My problem

  • 0

I have the following table code that each row contains a form. My problem is, the bottom row, where the input and submit are, is going to the top above the top table row. I cannot figure out why. Can someone please help and explain why the bottom row goes to the very top?

<table id="bet_table" width=800px cellspacing=0 cellpadding=1 border-width=1px>
    <tr bgcolor="BF1919" style="color:#fff; font-weight:bold;">
        <td><center>Time</center></td>
        <td><center>Game #</center></td>
        <td><center>Teams</center></td>
        <td><center>Run Line</center></td>
        <td><center>Money Line</center></td>
        <td><center>Total Runs</center></td>
    </tr>
    <tr bgcolor="#F0F0F0">
        <td colspan=6><center><strong>August 28, 2012</strong></center></td>
    </tr>
    <tr bgcolor="#fff">
        <form action="mlb.php?action=update&gameid=" method="post" />
        <td width="130px"><center><input type="text" size="4" name="time" value="7:00" />
        <select name="ampm">
            <option value="AM">A.M.
            <option value="PM">P.M.
        </select></center></td>
        <td width="60px"><center>306</center></td>
        <td>Los Angeles Dodgers<br />Los Angeles Angels</td>
        <td width="150px"><center>                          
        <select name="runline1frac">
            <option value="-1/2">-1&frac12;
            <option value="+1/2">+1&frac12;
        </select> &nbsp; <input type="text" size="4" name="runline1value" value="+120" /><br />
        <select name="runline2frac">
            <option value="-1/2">-1&frac12;
            <option value="+1/2">+1&frac12;
        </select> &nbsp; <input type="text" size="4" name="runline2value" value="-182" /></center></td>
        <td width="80px"><center><input type="text" size="4" name="moneyline1value" value="-132" /><br /><input type="text" size="4" name="moneyline2value" value="+132" /></center></td>
        <td align=right>Total Runs: <input type="text" size="3" name="totalruns" value="6" /> &nbsp; OV &nbsp; <input type="text" size="4" name="totalrunsOvalue" value="-178" /><br />UN &nbsp; <input type="text" size="4" name="totalrunsUvalue" value="+123" /></td>
    </tr>
    <tr colspan=6>
        <center>
            <input type="submit" value="Update" />
            </form>
        </center>
    </tr>
</table>
  • 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:11:11+00:00Added an answer on June 10, 2026 at 9:11 pm

    Pasted your code and fixed it here:

    http://jsfiddle.net/5nNxB/

    Your last <tr> did not have a <td>. Added it with the right colspan.

    As a side note, your code is not very clean. Wrap the entire table in <form> instead of randomly inserting the tags in the middle. Also, try not to use inline styling and attributes like bgcolor etc.

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

Sidebar

Related Questions

I have the following table that contains checkboxes in each row. When checkbox status
I have the following code that produces a background image in a table cell.
I have table that I insert data with following query (from c# code): INSERT
Problem: I have about 50,000 rows in Excel. Each row contains a the word
I have the following code which goes through a table that has a table
Hi I have the following table: Doc | code | Qty | Next 5211386
I have the following table structure (in MySQL): DocID, Code, IsDup, DopOf , where
I have the following table <thead> <tr> <th>Account ID</th> <th>Code</th> <th>Date Created</th> <th>Date Expires</th>
I have the following test-code: CREATE TABLE #Foo (Foo int) INSERT INTO #Foo SELECT
I have the following code which creates a new table. var html = '<table>';

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.