Jump to content

Including a php file with links still working


Linera

Recommended Posts

Here is my problem:I include a php file for http://webdkp.com into my sitebasicly it allows users to see certain info by going to my sitehere is my site page: http://www.theendless.logical-host.com/dkp/problem is all links that come from the include like

DKP | Loot History | Set Progress | Loot Table | Tiers
and
Player Class Guild DKP Lifetime
Don't workI need to include the php file so all the links will work.
Link to comment
Share on other sites

I clicked it and it works fine except the menu in the php included fileThis script(which doesn't work) should give an idea of what i need.

<?phpif (isset($_GET[view])){   if (isset($_GET[userid])){	   <?php include("http://www.webdkp.com/remote.php?view=<?=$_REQUEST['view']?>&id=8559&tableid=1&userid=<?=$_REQUEST['userid']?>");?>   }   else {	   <?php include("http://www.webdkp.com/remote.php?view=<?=$_REQUEST['view']?>&id=8559&tableid=1");?>   }}?>

Link to comment
Share on other sites

<?phpif (isset($_GET[view])){   if (isset($_GET[userid])){	   <?php include("http://www.webdkp.com/remote.php?view=<?=$_REQUEST['view']?>&id=8559&tableid=1&userid=<?=$_REQUEST['userid']?>");?>   }   else {	   <?php include("http://www.webdkp.com/remote.php?view=<?=$_REQUEST['view']?>&id=8559&tableid=1");?>   }}?>

You open multiple time php tag inside other php tag! I don't think you can do that.try this:
<?phpif (isset($_GET[view])){   if (isset($_GET[userid])){		include "http://www.webdkp.com/remote.php?view=" . $_REQUEST['view'] . "&id=8559&tableid=1&userid=" . $_REQUEST['userid'] . ";   }   else {		include "http://www.webdkp.com/remote.php?view=" . $_REQUEST['view'] . "&id=8559&tableid=1";   }}?>

Link to comment
Share on other sites

Try this instead:

<?phpif (isset($_GET['view'])){   if (isset($_GET['userid'])){		include "http://www.webdkp.com/remote.php?view=" . $_REQUEST['view'] . "&id=8559&tableid=1&userid=" . $_REQUEST['userid'];   }   else {		include "http://www.webdkp.com/remote.php?view=" . $_REQUEST['view'] . "&id=8559&tableid=1";   }}?>

Added quotes in the $_GET[..] and removed a quote on the end of first include...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...