it is acomplished by using $_GET[]. An example of code that would use this:
PHP Code:
switch($_GET['id']){ case '1': include('1.html'); break; case '2': include('2.html'); break; default: include('0.html'); }
If you had this code in your index.php file, you could type in your adress bar: "index.php?id=1" and the page would show the file 1.html
Simply having $_GET['id']; somewheres would work, but it wouldnt show anything different. You have to use if statements, switches etc. to actualy make it useful.
Someone else could probbaly explain it better than I can
|