hi all hope you can helf me.basically i would like to hide show some database rows not on the first page but only if the person clicks on a url does it show the rows all this is done on one single php page. is there a way of doing this?
regards warren
show hide block of code/records
Moderator: General Moderators
- MathewByrne
- Forum Commoner
- Posts: 38
- Joined: Sat Mar 27, 2004 9:49 pm
- Location: Australia
There are a lot of different ways of doing this.
An easy way would be using $_REQUEST variables in the URL, your hyperlink would look like:
Then all you need to do is check in your script for the presence of this variable:
An easy way would be using $_REQUEST variables in the URL, your hyperlink would look like:
Code: Select all
<a href="e;http://www.yourdomain.com/page.php?show=1"e;>Link</a>Code: Select all
if($_REQUEST["show"] == 1) {
// show all rows
}
else {
// only show some rows
}