Forum Moderators: coopster
Line 96 of wrapper.php contains ...
<?php
$my_data = explode("/", getenv("REQUEST_URI"));
putenv($PHP_my_var . "=" . $my_data[2]);
?>
and Line 208 of wrapper (the error) contains ...
<?php $include "http://mydomain.com/myphpform.php";?>
The page myphpform.php contains only the following ...
<?php echo 'Should be blank = ' . $uri_array[0];?>
<br>
<?php echo 'Should be a Number = ' . $uri_array[1];?>
<br>
<?php echo 'Should be a word = ' . $uri_array[2];?>
<br>
The file <?php echo $REQUEST_URI;?> was requested
<br>
Can you please tell me what I am doing wrong?
<?php
$my_data = explode("/", getenv("REQUEST_URI"));
putenv($PHP_my_var . "=" . $my_data[2]);
?>
and Line 208 of wrapper (the error) contains ...
<?php include "http://mydomain.com/myphpform.php";?>
The page myphpform.php contains only the following ...
<?php echo 'Should be blank = ' . $uri_array[0];?>
<br>
<?php echo 'Should be a Number = ' . $uri_array[1];?>
<br>
<?php echo 'Should be a word = ' . $uri_array[2];?>
<br>
The file <?php echo $REQUEST_URI;?> was requested
<br>
The page that is called by the include doesn't contain any data from the array (and I did correct the variable names to be consistent across both pages).
Any ideas?
I'm trying to pass variables in the URL according to the format domain.com/somenumber/someword as in [mydomain.com...]
The two variables are needed in both the wrapper page and the included page.
Get them in the wrapper page, don't in the included page.