Linera Posted March 2, 2007 Share Posted March 2, 2007 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 | TiersandPlayer Class Guild DKP LifetimeDon't workI need to include the php file so all the links will work. Link to comment Share on other sites More sharing options...
jlhaslip Posted March 2, 2007 Share Posted March 2, 2007 The second link is bad. Link to comment Share on other sites More sharing options...
Linera Posted March 2, 2007 Author Share Posted March 2, 2007 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 More sharing options...
Matpatnik Posted March 2, 2007 Share Posted March 2, 2007 <?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 More sharing options...
Linera Posted March 2, 2007 Author Share Posted March 2, 2007 Gave me an error:Goto http://www.theendless.logical-host.com/dkp/remote.phpto see error message. Link to comment Share on other sites More sharing options...
Mr_CHISOL Posted March 2, 2007 Share Posted March 2, 2007 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 More sharing options...
Matpatnik Posted March 2, 2007 Share Posted March 2, 2007 I forgot to erase the double quote Link to comment Share on other sites More sharing options...
Linera Posted March 2, 2007 Author Share Posted March 2, 2007 Fully working now at http://www.theendless.logical-host.com/remote.php Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now