Forum Moderators: coopster
The Requested URI is /10015/myphpform
**********************
The code is
**********************
<body>
<?php
$uri_array = explode("/", $REQUEST_URI,3);
?><br>
<?php
echo 'The Number =' . $uri_array[0];
?><br>
<?php
echo 'The Page =' . $uri_array[1];
?><br>
<?php
echo 'What is this? =' . $uri_array[3];
?><br>
The file <?php echo $REQUEST_URI;?> was requested
**********************
The rendered web page shows
**********************
The Number =
The Page =10015
What is this? =
The file /10015/myphpform was requested
**********************
Why is my second part of the REQUEST_URI showing from the array?
How can I correct it?
Many thanks for anll help.
This would be the first time I have ever used a PHP function. But I should know the numbering of array items.
Again, many thanks. This allows me to perform a task I was unable to do with the RewriteRule in .htaccess
CM