use this instead:
include($_GET['pid'] . '.php');
generally speaking , it is not very good practice to directly call a file based on user input like that without proper validation. what's to stop me from typing the following in my browser:
http://www.Rackie.com/index.php?pid=whatever_file_i_want
your script would then failthfully run the following code:
include('whatever_file_i_want.php');
which may not be what you want.