Jump to content

Include with stuff in the query string?!?


br3nn4n

Recommended Posts

I can't get it to include a file, and send some query string variables along side.

 

I'm using this:

<?PHP
include 'showslides.php?imgs=image1,image2,blarg';
?>

 

and I get an error stating it can't find the file. Obviously, it works without the query string, but I need it somehow.

 

Any ideas? :)

Link to comment
https://forums.phpfreaks.com/topic/141675-include-with-stuff-in-the-query-string/
Share on other sites

I think you don't understand what a query string is.  It's completely an HTTP thing and the web server handles it.  When you include the file, you can simply set the variables before including and they'll be available in the included script; no need for $_GET.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.