简体   繁体   中英

retrieving a column value from a selected row sql php

Hi thank you for reading!

I have a checkbox form that takes all the data from a database.

there are 3 columns in the form: id, link, action('submit' button)

when a user clicks the 'submit' button under column 'action', the browser will load the corresponding link in the same row.

i've been working this for a while, couldn't find anything on Google. so now i only have something like this: when the user clicks any button, the browser generates all the links appeard in the form instead of the just generating the one i clicked.

If you guys could help, it'd be great.

Thank you

Put a <form> / </form> in each row, not one for the whole table, if you only want that row's values to be submitted. Make sure there is an input (hidden or otherwise) in that form that somehow identifies which row is being submitted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM