showing 2nd page in a table in a primary content div in php
<p>I have a php form that once a user hits the SAVE button, it takes them to another page called: ADVISORSEDITPOST.php, What I need is to have that page opened up in the main pages primary content container which is shown below.  </p>

<p>I got it to show up in the page but with this part of the code
("Location: /PHP1_CombsW/index.php?menukey=10");
The data shows up on another webpage filled out (great!)but not on the main page (not so great!)
but with this code
header("Location: /PHP1_CombsW/index.php?menukey=10");
The page shows up in the main page where I want it but i get no information back from the web form .</p>

<p>The below code is my main page and snippet on the top is from the submitted form --latest attempt.  </p>

<p>Please help.</p>

<p>thank you </p>

<p>code</p>

<pre><code>&lt;?php
    switch($_POST['action']) { 
    case "Cancel": 
        header("Location: Index.php");
        break; 
    case "Save":
    ("Location: /PHP1_CombsW/index.php?menukey=10");
        $AdvisorID = $_REQUEST['AdvisorID'];
        break;
        default: 
        ("Location: AdvisorsEdit.php");
    }

    $today = date("F j, Y, g:i A");             // Format: March 10, 2001, 5:16 PM

/*  Date Format Samples...
      $today = date("F j, Y, g:i a");           // March 10, 2001, 5:16 pm
      $today = date("m.d.y");               // 03.10.01
      $today = date("j, n, Y");             // 10, 3, 2001
      $today = date("Ymd");                 // 20010310
      $today = date('h-i-s, j-m-y, it is w Day');       // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
      $today = date('\i\t \i\s \t\h\e jS \d\a\y.');     // it is the 10th day.
      $today = date("D M j G:i:s T Y");         // Sat Mar 10 17:16:18 MST 2001
      $today = date('H:m:s \m \i\s\ \m\o\n\t\h');       // 17:03:18 m is month
      $today = date("H:i:s");               // 17:16:18
*/

    $Salutation = $_REQUEST['txtSalutation'];
    $FirstName = $_REQUEST['txtFirstName'];
    $LastName = $_REQUEST['txtLastName'];



//  Validate the notation of meeting attendance
    if (isset($_REQUEST['rdomeeting'])) {
        $meetingID = $_REQUEST['rdomeeting'];
        if ($meetingID == 1) {
            echo "$meetingID";
        } elseif ($meetingID == 2) {
            echo "$meetingID";
        } elseif ($meetingID == 3) {
            echo "$meetingID";
        }

    } else {
        // Meeting Not Set
        $meetingID = NULL;
        echo "Meeting Designation Not Set!&lt;br /&gt;";
    }


    if (!empty($_REQUEST['chkCon'])) {
        $ChkCon = $_REQUEST['chkCon'];
    } else {
        $ChkCon = 0; 
    }




    $Address1 = $_REQUEST['txtAddress1'];
    $Address2 = $_REQUEST['txtAddress2'];
    $City = $_REQUEST['txtCity'];
    $State = $_REQUEST['txtState'];
    $Zip = $_REQUEST['txtZipCode'];
    $Company = $_REQUEST['txtCompanyName'];
    $Title = $_REQUEST['txtTitle'];
    $Department = $_REQUEST['txtDepartment'];
    $HomeNo = $_REQUEST['txtPhone'];
    $CellNo = $_REQUEST['txtmobile'];
    $FaxNo =  $_REQUEST['txtFax'];
    $Email =  $_REQUEST['txtEMail'];
    $Major = $_REQUEST['selMajor'];
    $Notes = $_REQUEST['txtAreaNotes'];
?&gt;
&lt;table width="580" cellspacing="5" cellpadding="5" border="3" bordercolor="#006600"&gt;
&lt;tr&gt;&lt;td colspan="2"&gt;&lt;?php echo "Date Added:$today" ;?&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan="2"&gt;&lt;?php echo "Advisor ID:" ." ". "$AdvisorID" ;?&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;
      &lt;td width="1%" &gt;Name&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$Salutation" ." ". "$FirstName" ." ". "$LastName" ; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Street Address&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$Address1"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
        &lt;tr&gt;
      &lt;td&gt;Address 2&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$Address2"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;City, ST &amp;amp; Zip&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$City" .",". "$State" ."  ". "$Zip" ; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
        &lt;tr&gt;    
    &lt;td&gt;Company Name&lt;/td&gt;
    &lt;td&gt;&lt;?php echo "$Company"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Job Title&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$Title"; ?&gt; &lt;/td&gt;
    &lt;/tr&gt;

    &lt;tr&gt;    
    &lt;td&gt;Department&lt;/td&gt;
    &lt;td&gt;&lt;?php echo "$Department"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;Home Phone&lt;/td&gt;
            &lt;td&gt;&lt;?php echo "$HomeNo"; ?&gt;&lt;/td&gt;
       &lt;/tr&gt;
       &lt;tr&gt;
            &lt;td&gt;Cell Phone&lt;/td&gt;
            &lt;td&gt;&lt;?php echo "$CellNo"; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
           &lt;td&gt;Fax&lt;/td&gt;
           &lt;td&gt;&lt;?php echo "$FaxNo"; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;

    &lt;tr&gt;
      &lt;td&gt;EMail&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$Email"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Major&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$Major"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Will Attend Meeting&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$meetingID"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Advisor Constituency&lt;/font&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo "$ChkCon"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Notes&lt;/td&gt;
      &lt;td &gt;&lt;?php echo "$Notes"; ?&gt;&lt;/td&gt;
    &lt;/tr&gt;


&lt;/table&gt;



&lt;div id="outer"&gt;
    &lt;div class="clear" id="header"&gt;
        &lt;?php
        include "header.php";
        ?&gt;
    &lt;/div&gt;
    &lt;div id="menu"&gt;
        &lt;?php
        include "topmenu.php";
        ?&gt;
    &lt;/div&gt;
    &lt;div id="content"&gt;
        &lt;div id="primaryContentContainer"&gt;
            &lt;div id="primaryContent"&gt;
            &lt;?php
            if (isset($_GET['menukey']))
                {
                $menukey = $_GET['menukey'];
                } 
                else 
                {
                $menukey = 0;
                }
            switch ($menukey) {
            case 1:
                    include "primarycontent.php";
                    break;
            case 2:
                    include "aboutme.php";
                    break;
            case 3:
                    include "WhatIDo.php";
                    break;
                case 4:
                    include "ContactMe.php";
                    break;
                case 5:
                    include "AdvisorsEdit.php"; 
                    break;

                case 10:
                    include "AdvisorsEditPost.php"
                    break;
        default:    // case else
                    include "primarycontent.php";
                    break; 

            }

?&gt;  
</code></pre>
