Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9036639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:03:07+00:00 2026-06-16T09:03:07+00:00

I have one page which is divided into sections. Ιn each section I like

  • 0

I have one page which is divided into sections. Ιn each section I like to load a page. If I have a form and I click submit button or a link I like to show the results in this section.

For example: I am in section “item1_section2” which show the php page manage_team_teacher.php. In page manage_team_teacher.php I have a form, if I submit the form or click a link I like to show the results again in section “item1_section2”. I am very confused on how to carry this out because all is in the same page (index.php). I’m new in PHP and I need your help. what do you suggest?

As you can see I try a lot of methods but I have problems: I try to GET from URL the name of page (in category).

<a href="index.php?category=manage_team_teacher2.php&amp;id_team=<?= $row['id_team']; ?>#item1_section2">manage</a></td>

above is an example of a link I tried to create

<div class="content" style="font-size:30px;">
                    <div class="section black" id="item1_section1" style="float: left; overflow: scroll; padding: 30px 0 0 30px; width: 869px;">
                            <h2>Section 1</h2>
                            <p>
                            sdffffffffffffffffffffffffff
                            sdffffff
                            sdf 
                            </p>
                            <ul class="nav">
                            <li>1</li>
                            <li><a href="#item1_section2">2</a></li>
                            <li><a href="#item1_section3">3</a></li>
                            </ul>

                    </div>
                    <div class="section white" id="item1_section2" style="float: left; overflow: scroll; padding: 30px 0 0 30px; height:690px; width: 869px;">
                            <h2>Section 2</h2>
                            <p>

                            <?php
                            include "includes/tests/multiple_choice.php";

                            ?>
                            </p>
                            <ul class="nav">
                            <li><a href="#item1_section1">1</a></li>
                            <li>2</li>
                            <li><a href="#item1_section3">3</a></li>
                            </ul>
                    </div>
                    <div class="section black" id="item1_section3">
                            <h2>Section 3</h2>
                            <p>
                            ‘He scents thy footsteps in the snow
                            Wheresoever thou dost go,
                            Thro’ the wintry hail and rain.
                            When wilt thou return again?

                            </p>
                            <ul class="nav">
                            <li><a href="#item1_section1">1</a></li>
                            <li><a href="#item1_section2">2</a></li>
                            <li>3</li>
                            </ul>
                    </div>
        </div>
        </div>





<!--########################--ITEM 2--########################-->




<?php if ($row['settings_key'] == background-color){
echo '<div id="item2" class="item" style="background-color: #'.$row['settings_value'].';">';
}?>

            <a name="item2"></a>
            <div class="content" style="font-size:30px;">
                <div class="section black" id="item2_section4" style="float: left; overflow: scroll; font-size: 18px; padding: 30px 0 0 30px; height:690px; width: 869px;">
                        <ul class="nav" style="float: left;">
                        <li>1</li>
                        <li><a href="#item2_section5">2</a></li>
                        <li><a href="#item2_section6">3</a></li>
                        </ul>
                        <h2>Section 1</h2>

                        <p>
                        <?php
                        include "create_new_team_teacher.php";
                        ?>
                        </p>

                </div>
                <div class="section white" id="item2_section5" style="float: left; overflow: scroll; font-size: 18px; padding: 30px 0 0 30px; height:690px; width: 869px;">
                        <h2>Section 2</h2>
                        <p>

                        <?php
                        if(isset($_GET['category'])){
                        // include page about me
                        include($_GET['category']);
                        //else if is defined URL variable 'interests'
                        } else {
                        include('manage_team_teacher.php');
                        }



                        ?>
                        </p>
                        <ul class="nav">
                        <li><a href="#item2_section4">1</a></li>
                        <li>2</li>
                        <li><a href="#item2_section6">3</a></li>
                        </ul>
                </div>
                <div class="section black" id="item2_section6">
                        <h2>Section 3</h2>
                        <p>
                        ‘He scents thy footsteps in the snow
                        Wheresoever thou dost go,
                        Thro’ the wintry hail and rain.
                        When wilt thou return again?

                        </p>
                        <ul class="nav">
                        <li><a href="#item2_section4">1</a></li>
                        <li><a href="#item2_section5">2</a></li>
                        <li>3</li>
                        </ul>
                </div>

            </div>

        </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:03:08+00:00Added an answer on June 16, 2026 at 9:03 am

    you need to also check that url is present

    if(isset($_GET['category']) $$ $_GET['category'] ==bla ){
    

    other wise if anybody set bla in url and it is not present than it causes

    Warning: include(): Failed opening '' for inclusion (include_path='blabal') on line bla
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have google analytics on my site. One page has a button which when
I have one page which has Only one Dropdown name called MydropDown.My submitted form
I have one page with textarea which content is saved into database. The content
I have one form on a page which has a bunch of sibling h5
I have one Page which is displaying details of some Client. I am using
I have one master page which applies to all pages in this website. On
I have a one-page OpenOffice document which is a POD template. Basically, I use
I have several forms on one page which are submitted using ajaxForm and show
I have a one page web application, which means alot of javascript. External scripts
I have one drop down list in my page, which contains two options. What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.