Question about links when using pagination
Moderator: General Moderators
-
mikegotnaild
- Forum Contributor
- Posts: 173
- Joined: Sat Feb 14, 2004 5:59 pm
Question about links when using pagination
when adding myfile.php?page=$variable ex. acoustic.php?page=2 ... Is '2' an actual php page. Is it temporarly created? I dont understand this. Because when i run my script and try to go to page=2 "page 2" It says there is no such file.
-
tylerdurden
- Forum Commoner
- Posts: 66
- Joined: Mon Jul 28, 2003 11:52 am
- Location: Austria
"2" is a variable you can use in your script to include a page. Something like this...
Note: This is horribly unsecure, don't use it, just an example.
Note: This is horribly unsecure, don't use it, just an example.
Code: Select all
<?php
include($_GET['page'] . '.php');
//will find a page called '2.php' and inlcude it
?>