Within some PHP code I'm constructing a URL that includes some variables that I want to pass along with the URL. Something like www.MyWebSite.c om/PageTwo.php?Par am1=32. I intend to use this constructed URL within a META tag that will cause it to jump to that page. For example:
echo '<META http-equiv="refresh" content="0;URL= www.MyWebSite.c om/PageTwo.php?Par am1=32">';
That works fine. It does indeed jump to that page an dthe parameter is indeed included in the URL when it gets there.
But how then do I retrieve the values I passed? How do I get that Param1=32?
I initially thought that this would constitute something comparable to a GET type of form submit, so that the values would be available via the PHP $_GET function ( e.g. $TheParam = $_GET['Param1'] ) but that doesn't work.
Is there a method for retrieving parameters passed by URL? Or, alternatively, is there a way I can get that META tag to do a GET type submit?
echo '<META http-equiv="refresh" content="0;URL= www.MyWebSite.c om/PageTwo.php?Par am1=32">';
That works fine. It does indeed jump to that page an dthe parameter is indeed included in the URL when it gets there.
But how then do I retrieve the values I passed? How do I get that Param1=32?
I initially thought that this would constitute something comparable to a GET type of form submit, so that the values would be available via the PHP $_GET function ( e.g. $TheParam = $_GET['Param1'] ) but that doesn't work.
Is there a method for retrieving parameters passed by URL? Or, alternatively, is there a way I can get that META tag to do a GET type submit?
Comment