url question
| From: | Ide, Jim | Date: | Tue, 10 Apr 2001 18:23:15 +0000 |
| Subject: | url question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48060@lists.php.net to get a copy of this message | ||
I have a php script that browses a database table.
You can page through the database table by
clicking these links:
http://localhost/browse.php?action=first
http://localhost/browse.php?action=prev
http://localhost/browse.php?action=next
http://localhost/browse.php?action=last
When you click the 'action=next' link, the script
displays the next X records (the script remembers
its position within the table).
The script also displays a link to a jpeg of the item
described in the database table. For example:
http://localhost/images/123456.jpg
If the user clicks the image link, the browser
displays the jpeg.
Suppose the user clicks the 'action=next' link,
and then clicks an image link. The browser
displays the jpeg. When the user clicks the
back button, the browser executes the previous
link (ie. the 'action=next' link) which displays
the next page of database records.
I want the browser to NOT display the next page
of data. I want the browser to stay on the page
that contains the link to the jpeg the user clicked.
How can I prevent the previous link from being
executed when the user clicks the back button?
Thanks -
Jim