slyte33 Posted February 26, 2010 Share Posted February 26, 2010 I am trying to include a PHP file with: include("page.php?get=data"); this does not work. PHP recommends you use URL wrapping instead, but that is not an option for me because if my host disables URL wrapping I’ll be left with broken scripts. Not to mention it takes longer to process. Is there another way? Help is greatly appreciated , thanks! Link to comment https://forums.phpfreaks.com/topic/193512-using-get-data-with-php-include/ Share on other sites More sharing options...
smerny Posted February 26, 2010 Share Posted February 26, 2010 just set it before including: $_GET['get'] = "data"; include("page.php"); Link to comment https://forums.phpfreaks.com/topic/193512-using-get-data-with-php-include/#findComment-1018705 Share on other sites More sharing options...
slyte33 Posted February 26, 2010 Author Share Posted February 26, 2010 just set it before including: $_GET['get'] = "data"; include("page.php"); Your a genius, thanks! Link to comment https://forums.phpfreaks.com/topic/193512-using-get-data-with-php-include/#findComment-1018707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.