I am moving my web site to a new host this weekend. I am working towards making the code compatible to the structure of the new server.
I am getting a weird response which I don't understand At the very start of my index.php I have the following lines of code: foreach($_GET as $key => $val) { $$key = $_GET[$val]; echo $_GET[$val] . "<br />"; } What I don't understand is why the output is <br /><br /> I am not understanding how two "empty" variables are being passed. index.php is driven off of various mod re-writes contained within .htaccess . This is why I am doing the loop above. RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L] RewriteRule ^page/([^/\.]+)/([^/\.]+)/?$ index.php?page=$1&field1=$2 [L] RewriteRule ^page/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?page= $1&field1=$2&field2=$3 [L] What should I be trying? What will allow the value of page to be passed onto $page with the following URL: http://www.actsministrieschristianevangelism.org/page/home_page/