Decode
24-02-2008, 10:57 AM
Im new to php and i cant figure out whats wrong.
I want it so that when you go to mysite.com/index.php?page=1 it includes pages/1.txt. This is the code;
<?php
$page = input($_GET['page']);
include("pages/' . $page . '.txt");
?>
EDIT: The error message is Fatal error: Call to undefined function input() in C:\wamp\www\index.php on line 12
I want it so that when you go to mysite.com/index.php?page=1 it includes pages/1.txt. This is the code;
<?php
$page = input($_GET['page']);
include("pages/' . $page . '.txt");
?>
EDIT: The error message is Fatal error: Call to undefined function input() in C:\wamp\www\index.php on line 12