Forum Moderators: coopster
If these links are written on the pages that are called by the $include function, will the variable created in the wrapper portion be recognized throughout the completed document?
For example, In my base document I have ...
<html>
<head>
<title>Some title</title>
</head>
Many Thanks for any help.
<body>
<?php $my_data = explode("/", $REQUEST_URI,3);?>
<? include("filename.php")?>
</body>
</html>
And in my "filename.php," I have ...
.... some content ....
<a HREF="'http://mydomain.com/' . $my_data [2]">Some Text</a>
.... more content ....
Would that variable be replaced with the value, and did I put the quoation marks in sufficiently and in the right places?
Many thanks.