<?php
// *********************************************** ***************************
// SERVER SECTION - usually database changes
// *********************************************** ***************************
/*
PROBLEMS OF SCRIPT PROGRAMMING:

1. All scripts, including this one, are parts of the code that are inserted into the appropriate places in the tables.php code.

2. The above script shows buttons for 3 related tables. Ignore the redundancy for
1 and 2 linked tables.

3. As a rule, the scripts of the client part are part of a single data processing algorithm.
This part usually contains the conditions for running the algorithm based on the analysis of data at the client.
The developers recommend to include in the client script as much as possible to reduce the load on the server
possible part of the data processing algorithm.

4. Debugging of the code is performed by clicking the Test button and analyzing the result and error messages.

5. The client and server parts of the scripts are represented by a primitive code for issuing messages.

6. For writing scripts, you can use the applied code fragments.
This can be done effectively using the tables.php objects; for this you need to familiarize yourself with tables.php.

7. It is impossible to tell about everything and is it necessary? How do you think ? Write to the developers about your wishes.
*/
// *******************************
// PROCESSING BUTTONS FATHER
// *******************************
if (isset ($_REQUEST["button11"]))      // Father, if he pressed button 1.
//****************************************************************************
{
// here on PHP, enter the code for the server side of the father
$soob="You pressed button 11!";
}
//****************************************************************************
if (isset ($_REQUEST["button12"]))      // Father, if he pressed button 2.
//****************************************************************************
{
// here on PHP, enter the code for the server side of the father
$soob="You pressed button 12!";
}
//****************************************************************************
if (isset ($_REQUEST["button13"]))      // Father, if he pressed button 3.
//****************************************************************************
{
// here on PHP, enter the code for the server side of the father
$soob="You pressed button 13!";
}
//************************************
//  
//************************************
if (isset ($_REQUEST["button21"]))      // A son. If you pressed button 1.
//****************************************************************************
{
// here on PHP, enter the code for the server side of the son
$soob="You pressed button 21!";
}
//****************************************************************************
if (isset ($_REQUEST["button22"]))      // A son. If you pressed button 2.
//****************************************************************************
{
// here on PHP, enter the code for the server side of the son
$soob="You pressed button 22!";
}
//****************************************************************************
if (isset ($_REQUEST["button23"]))      // A son. If you pressed button 3.
//****************************************************************************
{
// here on PHP, enter the code for the server side of the son
$soob="You pressed button 23!";
}

//************************************
//        PROCESSING OF BUTTONS GRANDSON 
//************************************
if (isset ($_REQUEST["button31"]))      // If, pressed 1 button, the grandson
//****************************************************************************
{
// here on PHP enter the code for the server side of the grandson
$soob="You pressed button 31!";
}
//****************************************************************************
if (isset ($_REQUEST["button32"]))      // If, pressed 2 button, the grandson
//****************************************************************************
{
// here on PHP enter the code for the server side of the grandson
$soob="You pressed button 32!";
}
//****************************************************************************
if (isset ($_REQUEST["button33"]))      // If, pressed 3 button, the grandson
//****************************************************************************
{
// here on PHP enter the code for the server side of the grandson
$soob="You pressed button 33!";
}
?>