Jump to content

how to insert hidden data into HTML table and extract it later


luceolsare

Recommended Posts

Hi,

Hope somebody can help me because I am relatively new to PHP and I am currently unsure how to implement the following:

 

Let's assume I have a table like this id_number, name, data1, data2. When displayed on HTML page:

Column id_number should be hidden.

Column name is a link. When you click on this column then value stored in id_number should be used in a query to database. Result should be displayed below the link on the same page. When clicked again data should hide.

 

I have some idea how to toggle visibility with a simple javascript function. How do i populate the table with hidden data and then extract it later on?

 

Any help or suggestions are appreciated. Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.