# Help with include

**URL:** <https://forum.kirupa.com/t/help-with-include/126730>\
**Category:** Uncategorized\
**Created:** [October 26, 2004, 7:55pm UTC](https://forum.kirupa.com/t/help-with-include/126730 "2004-10-26T19:55:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danii](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@Danii](https://forum.kirupa.com/u/Danii)\
**Post date:** [October 26, 2004, 7:55pm UTC](https://forum.kirupa.com/t/help-with-include/126730/1 "2004-10-26T19:55:59Z")

</div>

I have a file named sites.php and another file named queries.php

in the sites.php file I’ve written:  
include ‘queries.php?qtype=show\_sites’;

and in the queries.php file:  
$type = $\_GET[‘qtype’];  
//some code  
return $query;

But when I run the sites.php script it says it can’t find the file queries.php?qtype=show\_sites.

So basically I want to use include so that it can return me a variable, but I also want that file to recieve a variable. How do I do this?
