McBryver Posted May 19, 2010 Share Posted May 19, 2010 Is there a better way of doing this? I am getting an Error from this: foreach($HTTP_POST_VARS as $key => $value ){ $cgi[$key]=$value; } foreach($HTTP_GET_VARS as $key => $value ){ $cgi[$key]=$value; } I am getting this error from it: Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\script\system.php on line 8 Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\script\system.php on line 11 Any Help Would be Great Thanx, Bryver. Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/ Share on other sites More sharing options...
trq Posted May 19, 2010 Share Posted May 19, 2010 $HTTP_POST_VARS has long been deprecated in favor of $_POST. Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/#findComment-1060333 Share on other sites More sharing options...
kenrbnsn Posted May 19, 2010 Share Posted May 19, 2010 What are you trying to do? Ken Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/#findComment-1060338 Share on other sites More sharing options...
McBryver Posted May 19, 2010 Author Share Posted May 19, 2010 NVM I went back to $_POST not worth the hasle. Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/#findComment-1060341 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.