need help inserting and manipulating hidden data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lucesolare
Forum Newbie
Posts: 2
Joined: Wed Nov 24, 2010 8:11 am

need help inserting and manipulating hidden data

Post by lucesolare »

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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: need help inserting and manipulating hidden data

Post by Christopher »

It is a little confusing because you are using the word "table" for HTML <table>, but also perhaps a database table? It is not clear whether you want to "extract" the data later from HTML or the database?
(#10850)
lucesolare
Forum Newbie
Posts: 2
Joined: Wed Nov 24, 2010 8:11 am

Re: need help inserting and manipulating hidden data

Post by lucesolare »

Sorry for the confusion. I meant HTML table. I need to put data into HTML table but make data for column id_number hidden and extract that hidden data from HTML table so that I can use it in SELECT statement. I am not really sure how to go about all this and how much can be done using PHP only. Thanks.
Post Reply