Calling two php scripts from my main page.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dulany
    New Member
    • Oct 2009
    • 2

    Calling two php scripts from my main page.

    I have a need to call two php scripts from my main page. The output of the php script must display in two separate frames or sections of the same window. Any one has any idea how to accomplish this? I am a beginner to web development. Please help.
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Originally posted by dulany
    I have a need to call two php scripts from my main page. The output of the php script must display in two separate frames or sections of the same window. Any one has any idea how to accomplish this? I am a beginner to web development. Please help.

    You mean, you want to redirect to two PHP scripts on some condition?

    I mean, if event A occurs then go to A.php, else if B occur go to B.php..??

    Is this you want or??? I am not clear about your requirement.

    Regards
    Dheeraj Joshi

    Comment

    • dulany
      New Member
      • Oct 2009
      • 2

      #3
      Well, basically this is what I want done. I have a list of servers on the first frame. When I click on any of these servers, it should output the contents of A.php in second frame and B.php in third frame. If I can do this with div then that would be better as well.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        If you're using frames, you can set the target to those frames:
        Code:
        <a href="a.php" target="framename">
        You should, however, try to avoid frames where possible. You can use Ajax.

        Comment

        Working...