suria Posted July 20, 2007 Share Posted July 20, 2007 hi..i m new to p hp could anyone let me know How to include Link that could open in same page rather than going to another page for example, if i include a file in home.php <? include("/index.php") ?> and I want to open up the LINKS in "index.php" in same home.php. example - open "/index.php?p=Hits" on same home.php page I know i could have FRAMES but i dont want to frames in my site thank y ou Link to comment https://forums.phpfreaks.com/topic/61041-open-link-in-included-page/ Share on other sites More sharing options...
MadTechie Posted July 20, 2007 Share Posted July 20, 2007 Huh!! is their a php question in that post? include Example 16.5. Basic include() example vars.php <?php $color = 'green'; $fruit = 'apple'; ?> test.php <?php echo "A $color $fruit"; // A include 'vars.php'; echo "A $color $fruit"; // A green apple ?> Link to comment https://forums.phpfreaks.com/topic/61041-open-link-in-included-page/#findComment-303761 Share on other sites More sharing options...
Crew-Portal Posted July 21, 2007 Share Posted July 21, 2007 Each link would have to be assigned a variable and when that link is accessed it would have to cass that function in a $_GET variable. Just rambling on not sure if I am right or not but that is how I belive it would be done then send a link via <a href=index.php?link=greenapple>Apple Farms Visit Us! Donate Money</a> ps: I love that thing in guros name: "I Try To f1" Love it! Link to comment https://forums.phpfreaks.com/topic/61041-open-link-in-included-page/#findComment-303838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.