Jump to content

[SOLVED] tables and links...


Thundarfoot

Recommended Posts

I am working on a php page

 

I have a generated table with the output from a query.

 

the table only takes up about half the page.

 

The last column of the table contains a small icon, icon links to another .php page

 

My question is instead of opening that icon link in a new page or window, could I open in inside a cell of a table or something?

 

There is a lot of wasted space beside the query table, I would like to use to display the contents of the icon link....

 

is this possible?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/89274-solved-tables-and-links/
Share on other sites

or, you could use javascript. example:

make a <span> and put everything that you want to show up on the other php page in that span. do <span style='display:none' id='nextpage'>

for the icon, do onclick="document.getElementById('nextpage').style.display=''" and then when you click the icon the span will show up. and if you want the rest of the page to disappear, make another span around all of that content and  add another line to the previous onclick function that changes the display to none when you click the icon.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.