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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:46:17+00:00 2026-05-30T00:46:17+00:00

Basically I have a table that is being used to display data from an

  • 0

Basically I have a table that is being used to display data from an sql table.

Each row in the database is looped through so each row in the database is also displayed on a new row in the html table.

I have a submit button included in the loop which is displayed in the last column of each row.

What I want is when one of the submit buttons are pressed, the data on that specific row is stored and the displayed on the next page which is the forms action.

I’m not sure if this is possible the way I have done it or if I need a unique identifier for each submit button.

Any help would be appreciated 🙂

  • 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-05-30T00:46:18+00:00Added an answer on May 30, 2026 at 12:46 am

    well each row in the sql should have a unique identifier, use this identifier to distinguish which row of the html table that the user selected.

    simply, on the submit button have a post or get value of that unique identifier.

    When the next page is loaded, use $_GET or $_POST to recieve that unique identifier, use SQL to find the data of that row, and then display it to the html at the top of the new page.

    I believe that is what you are asking. Since you didnt ask for specific code.

    EDIT:
    If you want to use a get, use a simple anchor: just have the id in the url

    <a href="tablepage.php?rowid=$rowid">Submit</a>
    

    on the new page that links to, you just use

    $id=intval($_GET['rowid']) //the intval is for verification security
    

    or if you want to use a post, use a form

    <form name="table" action="/tablepage.php" method="post">
    <input type="submit" value="Submit" /> //this is the submit button, use a div to change its look
    <input type="hidden" name="post" value="$rowid" />   //this contains the unique id in the post
    </form>
    

    and on the next page you get the post value through

      $id=intval($_POST['rowid'])       
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a History Table in SQL Server that basically tracks an item through
So I have a table that's basically a tree. Each row has a parent
If I were to select a row from a table I basically have two
I'm seeing basically the same issue described here I have a table that starts
Basically I have a table which is used to hold employee work wear details.
Can we have a SQL query which will basically help in viewing table and
I have a MyISAM table that basically contains a log. A cluster of machines
I have a table in SQL Server 2008 that looks kind of like this:
I have a table full of data that's typically pretty manageable, but on occasion
I run a lyrics web site and I have a single table that basically

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.