Jump to content

[SOLVED] Sort by Table Header


GreenSmurf

Recommended Posts

Is there a more secure way of creating the links in this sort? I would much rather the ?sort=... did not display in the URL.

 

<tr padding="0" align="center">
             <td> </td>
             <td><u><a href=index.php?sort=clientID&order=<?php echo $rOrder ?>>Client ID</a></u></td>
             <td><u><a href=index.php?sort=lastname&order=<?php echo $rOrder ?>>Lastname</a></u></td>
             <td><u><a href=index.php?sort=firstname&order=<?php echo $rOrder ?>>Firstname</a></u></td>
             <td><u><a href=index.php?sort=boss&order=<?php echo $rOrder ?>>Company</a></u></td>
             <td><u><a href=index.php?sort=email&order=<?php echo $rOrder ?>>E-mail</a></u></td>
             <td><u>Phone #</u></td>
             <td> </td>
             <td> </td>
             <td> </td>
             <td> </td>
             <td> </td>
             <td><u><a href=index.php?sort=clientID&order=<?php echo $rOrder ?>>Accountant</a></u></td>
             <td><u>Activity</u></td>
</tr>

 

Thank you.

 

-Brandon

Link to comment
https://forums.phpfreaks.com/topic/108771-solved-sort-by-table-header/
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.