Jump to content

Adaptive html table


phpfreakjav

Recommended Posts

<table width="200" border="1">

  <tr>

    <th scope="col">Category 1 </th>

    <th scope="col">Category 2</th>

  </tr>

  <tr>

    <td scope="data_1">Item 1</th>

    <td scope="data_2">Item 1</th>

  </tr>

</table>

 

 

<form id="options_pane" name="option_pane" method="post" action="">

  <label>

  <select name="options" id="options">

  <option>Display All Data</option>

  <option>Display Category 1</option>

  <option> Display Category 2</option>

  </select>

  </label>

</form>

 

 

What I need.

1. A user is in a website. He click on display category 1 link. When the user enters the website only that category_1 shows in the table  but category 2 is not present.  When the user selects Display All data both columns are shown.

 

 

Link to comment
https://forums.phpfreaks.com/topic/125711-adaptive-html-table/#findComment-651471
Share on other sites

  • 2 months later...

here is how I did it with php no javascript

http://www.calstatela.edu/academic/aa/ess/elps/newweb/elpsworkshop_schedule.php?value=All

I pass by value and if statements select the correct information.

Show workshops: All | Tools for Teaching | ATI | WebCT | Web Development

Link to comment
https://forums.phpfreaks.com/topic/125711-adaptive-html-table/#findComment-717247
Share on other sites

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.