I am trying to send a variable "q" to a search page through url. but i get the error saying
Fatal error: require(): Failed opening required 'theme/_modules/contact/search.php?q={echo $q;}' (include_path='.:/usr/lib/php:/usr/local/lib/php')
here is my code
if(isset($_POST['q'])){
$q= $_POST['q'];
}
require 'theme/header.php';
require 'theme/_modules/contact/search.php?q={echo $q;}';
require 'theme/footer.php';
can any one tell me the reason and a way to over come this problem.. thank you..
after doing this..
require 'theme/header.php';
//require 'theme/_modules/contact/search.php?q={echo $q;}';
require "theme/_modules/contact/search.php?q=$q";
require 'theme/footer.php';
i get the error
Warning: require(theme/_modules/contact/search.php?q=saman): failed to open stream: No such file or directory in /home/dr7bf45v/public_html/search.php on line 17