I intend to maximize the use of space on my web page, so I have decided to use Spry Tabbed Panels.

However, problem is that Whenever I submit data on one panel to a mysql database, the second panel submits itself too.

I want to deal with the data on each panel separately. Anything special that I have to do?

Pliz help.

Recommended Answers

All 3 Replies

Member Avatar for diafol

Not sure about spry, but it sounds as though you form is the container for the tabs. Try placing the forms within the tabs.

<div id="tab-1">
  <form...>
    ...
  </form>
</div>
<div id="tab-2">
  <form...>
    ...
  </form>
</div>

I've used variables; $_post == 1, IS WHAT AM CAPTURING FROM THE FIRST FORM ON ONE TAB, while $_post == 2, IS DATA FROM THE SECOND FORM ON TAB 2.
At the moment, I want the data from each tab to be sent to different MYsql database tables. Problem is; They both submit, even when I send data only from one form.
This is the code I am working with.

<?php
session_start();
$username2=$_SESSION['username'];
if($_SESSION['username']=="")
{
header("Location:index.php");
}
?>
<?php 
if($_POST['sent'] == 1)
{
if($_POST['submit_year'] < 2012)
{
$messageYearMsg = 'Please Enter a Correct Year';
}
else if($_POST['interview_fees'] == NULL)
{
$messageInterviewFeeMsg = 'This is a required Field';
}
else if($_POST['building_fund'] == NULL)
{
$messageBuildingFundMsg = 'This Is a Required Field';
}
else if($_POST['library_fees'] == NULL)
{
$messageLibFeeMsg = 'This is a Required Field';
}
else if($_POST['general_uniform'] == NULL)
{
$messagegeneral_uniformMsg = 'This is a Required Field';
}
else if($_POST['sports_wear'] == NULL)
{
$messagesports_wearMsg = 'This is a Required Field';
}
else if($_POST['sweater'] == NULL)
{
$messagesweaterMsg = 'This is a Required Field';
}
else if($_POST['porridge_meal'] == NULL)
{
$messageporridge_mealMsg = 'This is a Required Field';
}
else if($_POST['lunch_meal'] == NULL)
{
$messagelunch_mealMsg = 'This is a Required Field';
}
else if($_POST['ruledExerciseBooks48'] == NULL)
{
$messageruledExerciseBooks48Msg = 'This is a Required Field';
}
else if($_POST['photocopyPaper'] == NULL)
{
$messagephotocopyPaperMsg = 'This is a Required Field';
}
else if($_POST['coloured_pencils'] == NULL)
{
$messagecoloured_pencilsMsg = 'This is a Required Field';
}
else if($_POST['ruled_exercise_books'] == NULL)
{
$messageruled_exercise_booksMsg = 'This is a Required Field';
} 
else if($_POST['school_file'] == NULL)
{
$messageschool_fileMsg = 'This is a Required Field';
} 
else if($_POST['indoor_broom'] == NULL)
{
$messageindoor_broomMsg = 'This is a Required Field';
}  
else if($_POST['outdoor_broom'] == NULL)
{
$messageoutdoor_broomMsg = 'This is a Required Field';
}  
else if($_POST['pencils'] == NULL)
{
$messagepencilsMsg = 'This is a Required Field';
} 
else if($_POST['toilet_paper_rolls'] == NULL)
{
$messagetoilet_paper_rollsMsg = 'This is a Required Field';
} 
else if($_POST['squared_books_200'] == NULL)
{
$messagesquared_books_200Msg = 'This is a Required Field';
}  
else if($_POST['ruled_exercisebooks_96'] == NULL)
{
$messageruled_exercisebooks_96Msg = 'This is a Required Field';
} 
else if($_POST['ruled_exercise_books_200'] == NULL)
{
$messageruled_exercise_books_200Msg = 'This is a Required Field';
} 
else if($_POST['book_cover_lower'] == NULL)
{
$messagebook_cover_lowerMsg = 'This is a Required Field';
}  
else if($_POST['book_covers_upper'] == NULL)
{
$messagebook_covers_upperMsg = 'This is a Required Field';
} 
else
{
$host="localhost"; // Host name 
$username2="root"; // Mysql username 
$password=""; // Mysql password 
$db_name="sunrise"; // Database name 

// Connect to server and select database.
mysql_connect("$host", "$username2", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

$year = $_POST['submit_year'];
$interview_fees = $_POST['interview_fees'];
//$class_select = $_POST['class_select'];
$building_fund = $_POST['building_fund'];
//$class_tuition = $_POST['class_tuition'];
$library_fees = $_POST['library_fees'];
//$exam_fees = $_POST['exam_fees'];
$general_uniform = $_POST['general_uniform'];
$sports_wear = $_POST['sports_wear'];
$sweater = $_POST['sweater'];
$porridge_meal = $_POST['porridge_meal'];
$lunch_meal = $_POST['lunch_meal'];
$ruledExerciseBooks48 = $_POST['ruledExerciseBooks48'];
$photocopyPaper = $_POST['photocopyPaper'];
$coloured_pencils = $_POST['coloured_pencils'];
$ruled_exercise_books = $_POST['ruled_exercise_books'];
$school_file = $_POST['school_file'];
$indoor_broom = $_POST['indoor_broom'];
$outdoor_broom = $_POST['outdoor_broom'];
$pencils = $_POST['pencils'];
$toilet_paper_rolls = $_POST['toilet_paper_rolls'];
$squared_books_200 = $_POST['squared_books_200'];
$ruled_exercisebooks_96 = $_POST['ruled_exercisebooks_96'];
$ruled_exercise_books_200 = $_POST['ruled_exercise_books_200'];
$book_cover_lower = $_POST['book_cover_lower'] * 150;
$book_covers_upper = $_POST['book_covers_upper'] * 150;

/*$name = $_POST['name'];
$usertype = $_POST['usertype'];*/
$query = "INSERT INTO requirements 
VALUES ('','$year','$interview_fees','$building_fund','$library_fees','$general_uniform',
'$sports_wear','$sweater','$porridge_meal','$lunch_meal','$ruledExerciseBooks48','$photocopyPaper','$coloured_pencils',
'$ruled_exercise_books','$school_file','$indoor_broom','$outdoor_broom','$pencils','$toilet_paper_rolls','$squared_books_200',
'$ruled_exercisebooks_96','$ruled_exercise_books_200','$book_cover_lower','$book_covers_upper')";
$results = mysql_query($query) or die ('Error'.mysql_error());
if($results)
{
echo "<meta http-equiv=Refresh content=2;url=admin_home.php>";
}
}
}
?>

<?php 
if($_POST['sent_admission'] == 2)
{
if($_POST['baby_class_tuition'] == NULL)
{
$messageBaby_classMsg = 'This is a required Field';
}
else if($_POST['top_class_tuition'] == NULL)
{
$messagetop_class_tuitionMsg = 'This is a required Field';
}
else if($_POST['p3_tuition'] == NULL)
{
$messagep3_tuitionMsg = 'This Is a Required Field';
}
else if($_POST['p4_tuition'] == NULL)
{
$messagep4_tuitionMsg = 'This is a Required Field';
}
else if($_POST['p6_tuition'] == NULL)
{
$messagep6_tuitionMsg = 'This is a Required Field';
}
else if($_POST['p7_tuition'] == NULL)
{
$messagep7_tuitionMsg = 'This is a Required Field';
}
else if($_POST['baby_class_exam_fee'] == NULL)
{
$messagebaby_class_exam_feeMsg = 'This is a Required Field';
}
else if($_POST['p3_exam_fees'] == NULL)
{
$messagep3_exam_feesMsg = 'This is a Required Field';
}
else if($_POST['p7_exam_fees'] == NULL)
{
$messagep7_exam_feesMsg = 'This is a Required Field';
} 
else
{
$host="localhost"; // Host name 
$username2="root"; // Mysql username 
$password=""; // Mysql password 
$db_name="sunrise"; // Database name 

// Connect to server and select database.
mysql_connect("$host", "$username2", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

$babyTuition = $_POST['baby_class_tuition'];
$top_class_tuition = $_POST['top_class_tuition'];
$p3_tuition = $_POST['p3_tuition'];
$p4_tuition = $_POST['p4_tuition'];
$p6_tuition = $_POST['p6_tuition'];
$p7_tuition = $_POST['p7_tuition'];
$baby_class_exam_fee = $_POST['baby_class_exam_fee'];
$p3_exam_fees = $_POST['p3_exam_fees'];
$p7_exam_fees = $_POST['p7_exam_fees'];

/*$name = $_POST['name'];
$usertype = $_POST['usertype'];*/
$insert = "INSERT INTO admission_requirements 
VALUES ('','$babyTuition','$top_class_tuition','$p3_tuition','$p4_tuition','$p6_tuition',
'$p7_tuition','$baby_class_exam_fee','$p3_exam_fees','$p7_exam_fees')";
$result = mysql_query($insert) or die ('Error'.mysql_error());
if($result)
{
echo "<meta http-equiv=Refresh content=2;url=admin_home.php>";
}
}
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:..: Sunrise Nursery &amp; Primary School</title>
<link rel="stylesheet" type="text/css" href="css/formating.css" />
<style type="text/css">
<!--
.style1 {color: #FFFFFF;
	font-weight: bold;
}
.style2 {	color: #333333;
	font-weight: bold;
}
.style4 {font-weight: bold}
.style6 {color: #FF0000}
.style7 {
	color: #000000;
	font-weight: bold;
}
.error{
color:#FF0000;
font-size:10px:
}
-->
</style>
<script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#339933">
<form action="requirements.php" method="POST" name="myform" id="myform">
  <div align="center">
    <table width="933" height="231" border="0">
      <tr>
        <td height="184" colspan="6"><img src="images/logo.jpg" alt="Logo" width="920" height="180" /></td>
      </tr>
      <tr>
        <td width="194"><span class="style2">Welcome:
          <?php
	$host="localhost"; // Host name 
$root="root"; // Mysql username 
$password=""; // Mysql password 
$db_name="sunrise"; // Database name 
$tbl_name="users"; // Table name 

// Connect to server and select database.
mysql_connect("$host", "$root", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");
// select record from mysql 
$sql="SELECT firstName FROM users where username='$username2'";
$result=mysql_query($sql);

	// Do while loop for out put records. 
	while($rows=mysql_fetch_array($result)){
	
 echo $rows['firstName']; 
			// close while loop
								}

			// close connection; 
			mysql_close();
	
?>
        </span></td>
        <td width="53"><strong>Date:</strong></td>
        <td width="483"><SCRIPT language=JavaScript type=text/javascript>
	DaysofWeek = new Array()
	DaysofWeek[0]="Sun"
	DaysofWeek[1]="Mon"
	DaysofWeek[2]="Tues"
	DaysofWeek[3]="Wed"
	DaysofWeek[4]="Thur"
	DaysofWeek[5]="Fri"
	DaysofWeek[6]="Sat"
	
	Months = new Array()
	Months[0]="Jan"
	Months[1]="Feb"
	Months[2]="Mar"
	Months[3]="Apr"
	Months[4]="May"
	Months[5]="Jun"
	Months[6]="Jul"
	Months[7]="Aug"
	Months[8]="Sept"
	Months[9]="Oct"
	Months[10]="Nov"
	Months[11]="Dec"
	
	RightNow = new Date()
	
	var day = DaysofWeek[RightNow.getDay()]
	var date = RightNow.getDate()
	var Month = Months[RightNow.getMonth()]
	var Year = RightNow.getFullYear()
	
	document.write("<div class=\"date\"> " +day+ ", " +Month+ "- " +date+"- " +Year+ "</div>")
	
          </SCRIPT></td>
        <td width="86"><strong>Time:</strong></td>
        <td width="225"><img src="imageclock/digitblank.gif" name="hourstens" border="0" id="hourstens" /><img src="imageclock/digitblank.gif" name="hoursones" border="0" id="hoursones" /><img src="imageclock/digitblank.gif" name="colon" border="0" id="colon" /><img src="imageclock/digitblank.gif" name="minstens" border="0" id="minstens" /><img src="imageclock/digitblank.gif" name="minsones" border="0" id="minsones" /><img src="digitblank.gif" name="ampm" width="26" height="20" border="0" id="ampm" />
          </center>
          <script language="JavaScript" type="text/javascript">
  if (document.images) { 
    digit1 = new Image; 
    digit1.src = "imageclock/digit1.gif"; 
	digit2 = new Image; 
    digit2.src = "imageclock/digit2.gif";
	digit3 = new Image; 
    digit3.src = "imageclock/digit3.gif";
	digit4 = new Image; 
    digit4.src = "imageclock/digit4.gif";
	digit5 = new Image; 
    digit5.src = "imageclock/digit5.gif";
	digit6 = new Image; 
    digit6.src = "imageclock/digit6.gif";
	digit7 = new Image; 
    digit7.src = "imageclock/digit7.gif";
	digit8 = new Image; 
    digit8.src = "imageclock/digit8.gif";
	digit9 = new Image; 
    digit9.src = "imageclock/digit9.gif";
	digit0 = new Image; 
    digit0.src = "imageclock/digit0.gif";
	digitam = new Image; 
    digitam.src = "imageclock/digitam.gif";
	digitpm = new Image; 
    digitpm.src = "imageclock/digitpm.gif";
	digitcolon = new Image;
	digitcolon.src = "imageclock/digitcolon.gif";
	digitblank = new Image;
	digitblank.src = "imageclock/digitblank.gif";
	}
	
function UpdateClock(){
    var time= new Date();
    hours = time.getHours();
    mins = time.getMinutes();
    if (!document.images) return;
	digit = mins % 10;
    document.images.minsones.src=eval("digit"+digit+".src");
	digit = (mins - (mins % 10))/10;
	document.images.minstens.src=eval("digit"+digit+".src");
	if (hours > 12)
	  document.images.ampm.src=digitpm.src;
	else
	  document.images.ampm.src=digitam.src;
	if (hours > 12) hours = hours - 12;
	digit = hours % 10;
	document.images.hoursones.src=eval("digit"+digit+".src");
	digit = (hours - (hours % 10))/10;
	document.images.hourstens.src=eval("digit"+digit+".src");
	document.images.colon.src=digitcolon.src;
	setTimeout("UpdateClock()",30000);

  }

   UpdateClock();
            </script></td>
        <td width="47"><div align="right"><span class="style2"><a href="index.php">Logout</a></span></div></td>
      </tr>
      <tr>
        <td colspan="6"><div align="center">
          <hr size="3" color="#FFFFFF" align="center" />
        </div></td>
      </tr>
      <tr>
        <td colspan="6"><div align="center" class="style1">Set  Student Requirements</div></td>
      </tr>
      <tr>
        <td colspan="6"><div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">Class Requirements</li>
            <li class="TabbedPanelsTab" tabindex="0">Admission Requirements</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent"><table width="927" border="0" bgcolor="#339933" onfocus="MM_validateForm('firstName id=','','R','surName','','R','username','','R','password','','R','comfirm_password','','R');return document.MM_returnValue">
          <tr>
            <td height="21" colspan="6"><div align="center">
              <hr size="3" color="#FFFFFF" align="center" />
              </div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center"><span class="style7">Admission  Requirements</span></div></td>
            <td bgcolor="#CCCCCC"> <div align="center"><span class="style7">Item</span></div></td>
            <td bgcolor="#CCCCCC">&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center" class="style7">Fee / Quantity / Value</div></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="116"><span class="style1">Administrator Links</span></td>
            <td width="150">&nbsp;</td>
            <td width="304">Year:</td>
            <td width="13" rowspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td width="158"><input type="text" name="submit_year" value="2012" /></td>
            <td width="160"><span class='error'><?php echo $messageYearMsg; ?></span></td>
          </tr>
          <tr>
            <td rowspan="3"><?php include('includes/menu.php');?></td>
            <td>&nbsp;</td>
            <td>Registration / Interview Fees:<span class="style6"></span></td>
            <td><input type="text" name="interview_fees" id="interview_fees" value="20000"/></td>
            <td><span class='error'><?php echo $messageInterviewFeeMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>Building Fund:: </td>
            <td><input type="text" name="building_fund" id="building_fund" value="20000"/></td>            
            <td><span class="error"><?php echo $messageBuildingFundMsg ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>Library Fees:</td>
            <td><input type="text" name="library_fees" value="20000"/></td>
            <td><span class="error"><?php echo $messageLibFeeMsg ?></span></td>
          </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="6"><div align="center">
              <hr size="3" color="#FFFFFF" align="center" />
              </div></td>
            </tr>
          <tr>
            <td>&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center"><span class="style7">Other Requirements</span></div></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="-4">&nbsp;</td>
            <td height="-4">General Uniform:<span class="style6"></span></td>
            <td width="13" rowspan="5">&nbsp;</td>
            <td><input type="text" name="general_uniform" id="general_uniform" value="22000"/></td>
            <td><span class='error'><?php echo $messagegeneral_uniformMsg ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="-1">&nbsp;</td>
            <td height="-1">Sports Wear<span class="style6">:</span></td>
            <td><input type="text" name="sports_wear" id="sports_wear" value="22000"/></td>
            <td><span class='error'><?php echo $messagesports_wearMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="-1">&nbsp;</td>
            <td height="-1">Sweater (Optional):</td>
            <td><input type="text" name="sweater" id="sweater" value="22000" /></td>
            <td><span class='error'><?php echo $messagesweaterMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="0">&nbsp;</td>
            <td height="0">Meals (Porridge with Milkl)<span class="style6">:</span></td>
            <td><input type="text" name="porridge_meal" value="20000"/></td>
            <td><span class='error'><?php echo $messageporridge_mealMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="1">&nbsp;</td>
            <td height="1">Meals (Lunch for 81 days):</td>
            <td><input type="text" name="lunch_meal" value="40000" /></td>
            <td><span class='error'><?php echo $messagelunch_mealMsg; ?></span></td>
          </tr>
          <tr>
            <td height="4" colspan="6"><div align="center">
              <hr size="3" color="#FFFFFF" align="center" />
            </div></td>
            </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10" bgcolor="#CCCCCC"><div align="center"><span class="style7">Class Requirements</span></div></td>
            <td height="10">&nbsp;</td>
            <td width="13" rowspan="17">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Ruled Exercise Books (48 Pages):</td>
            <td><input type="text" name="ruledExerciseBooks48" value="8"/></td>
            <td><span class='error'><?php echo $messageruledExerciseBooks48Msg; ?></span></td>
          </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Photocopy Paper:</td>
            <td><input type="text" name="photocopyPaper" value="15000" /></td>
            <td><span class="error"><?php echo $messagephotocopyPaperMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Coloured Pencils:</td>
            <td><input type="text" name="coloured_pencils" value="1 Packet" /></td>
            <td><span class="error"><?php echo $messagecoloured_pencilsMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Ruled Exercise Books(96 Pages:  Top Class - P.2):</td>
            <td><input type="text" name="ruled_exercise_books" value="12" /></td>
            <td><span class="error"><?php echo $messageruled_exercise_booksMsg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">School File:</td>
            <td><input type="text" name="school_file" value="2000" /></td>
            <td><span class="error"><?php echo $messageschool_fileMsg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Indoor Broom:</td>
            <td><input type="text" name="indoor_broom" value="1" /></td>
            <td><span class="error"><?php echo $messageindoor_broomMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Outdoor Broom:</td>
            <td><input type="text" name="outdoor_broom" value="1" /></td>
            <td><span class="error"><?php echo $messageoutdoor_broomMsg; ?></span></td> 
          </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Pencils (Picfare):</td>
            <td><input type="text" name="pencils" value="24" /></td>
            <td><span class="error"><?php echo $messagepencilsMsg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Toilet Paper rolls:</td>
            <td><input type="text" name="toilet_paper_rolls" value="2" /></td>
            <td><span class="error"><?php echo $messagetoilet_paper_rollsMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Squared Books (200 Pages):</td>
            <td><input type="text" name="squared_books_200" value="2" /></td>
            <td><span class="error"><?php echo $messagesquared_books_200Msg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="15">&nbsp;</td>
            <td height="15">Ruled Exercise Books (96 Pages):</td>
            <td><input type="text" name="ruled_exercisebooks_96" value="2" /></td>
            <td><span class="error"><?php echo $messageruled_exercisebooks_96Msg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="15">&nbsp;</td>
            <td height="15">Ruled Exercise Books (200 Pages):</td>
            <td><input type="text" name="ruled_exercise_books_200" value="8" /></td>
            <td><span class="error"><?php echo $messageruled_exercise_books_200Msg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Book Covers (Baby Class - P.2):</td>
            <td><input type="text" name="book_cover_lower" value="8" /></td>
            <td><span class="error"><?php echo $messagebook_cover_lowerMsg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">Book Covers (P.3 - P.7)</td>
            <td><input type="text" name="book_covers_upper" value="12" /></td>
            <td><span class="error"><?php echo $messagebook_covers_upperMsg; ?></span></td> 
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10"><input type="submit" name="submit" value="Add record" /></td>
            <td colspan="2"><input type="reset" name="reset" value="Clear Fields" />  &nbsp;&nbsp;&nbsp;<input type="hidden" name="sent" 
            value="1" /></td>
          </tr>
          
          <tr>
            <td height="5" colspan="6"><hr size="3" color="#FFFFFF" align="center" />
              <div align="center"><span class="style4"> </strong></span></div></td>
          </tr>
          <tr>
            <td height="15" colspan="6"> <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; Sunrise nursery &amp; Primary School 2012 </strong></td>
          </tr>
        </table>
            </div>
            <div class="TabbedPanelsContent"><table width="927" border="0" bgcolor="#339933" onfocus="MM_validateForm('firstName id=','','R','surName','','R','username','','R','password','','R','comfirm_password','','R');return document.MM_returnValue">
          <tr>
            <td height="21" colspan="6"><div align="center">
              <hr size="3" color="#FFFFFF" align="center" />
              </div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center"><span class="style7">Tuition Payment</span></div></td>
            <td bgcolor="#CCCCCC"> <div align="center"><span class="style7">Item</span></div></td>
            <td bgcolor="#CCCCCC">&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center" class="style7">Fee / Quantity / Value</div></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="116"><span class="style1">Administrator Links</span></td>
            <td width="150">&nbsp;</td>
            <td width="304">Baby Class Tuition:</td>
            <td width="13" rowspan="4">&nbsp;</td>
            <td width="158"><input type="text" name="baby_class_tuition" value="100000" /></td>
            <td width="160"><span class='error'><?php echo $messageBaby_classMsg; ?></span></td>
          </tr>
          
          <tr>
            <td rowspan="3"><?php include('includes/menu.php');?></td>
            <td>&nbsp;</td>
            <td>Top Class, P.1 &amp; P.2 Tuition:</td>
            <td><input type="text" name="top_class_tuition" id="top_class_tuition" value="120000"/></td>            <td><span class="error"><?php echo $messagetop_class_tuitionMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>P.3 Tuition:<span class="error"></span></td>
            <td><input type="text" name="p3_tuition" value="130000" /></td>
            <td><span class="error"><?php echo $messagep3_tuitionMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>P.4 &amp; P.5 Tuition:</td>
            <td><input type="text" name="p4_tuition" value="150000"/></td>
            <td><span class="error"><?php echo $messagep4_tuitionMsg; ?></span></td>
          </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>P.6 Tuition:</td>
            <td width="13">&nbsp;</td>
            <td><input type="text" name="p6_tuition" value="170000" /></td>
            <td><span class="error"><?php echo $messagep6_tuitionMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>P.7 Tuition:</td>
            <td>&nbsp;</td>
            <td><input type="text" name="p7_tuition" value="220000" /></td>
            <td><span class="error"><?php echo $messagep7_tuitionMsg; ?></span></td>
          </tr>
          
          <tr>
            <td colspan="6"><div align="center">
              <hr size="3" color="#FFFFFF" align="center" />
            </div></td>
            </tr>
          <tr>
            <td>&nbsp;</td>
            <td bgcolor="#CCCCCC"><div align="center"><strong>Examination Fees:</strong></div></td>
            <td bgcolor="#CCCCCC"><div align="center"><span class="style7">Item</span></div></td>
            <td bgcolor="#CCCCCC">&nbsp;</td>
            <td bgcolor="#CCCCCC"><span class="style7">Fee / Quantity / Value</span></td>
            <td>&nbsp;</td>
          </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td height="-4">&nbsp;</td>
            <td height="-4">Baby Class - P.2:<span class="style6"></span></td>
            <td width="13" rowspan="3">&nbsp;</td>
            <td><input type="text" name="baby_class_exam_fee" id="baby_class_exam_fee" value="3000"/></td>
            <td><span class="error"><?php echo $messagebaby_class_exam_feeMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="-1">&nbsp;</td>
            <td height="-1">P.3 - P.6:<span class="style6"></span></td>
            <td><input type="text" name="p3_exam_fees" id="p3_exam_fees" value="3500"/></td>
            <td><span class="error"><?php echo $messagep3_exam_feesMsg; ?></span></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="-1">&nbsp;</td>
            <td height="-1">P.7:</td>
            <td><input type="text" name="p7_exam_fees" id="p7_exam_fees" value="5000" /></td>
            <td><span class="error"><?php echo $messagep7_exam_feesMsg; ?></span></td>
          </tr>
          
          <tr>
            <td height="4" colspan="6"><div align="center">
              <hr size="3" color="#FFFFFF" align="center" />
            </div></td>
            </tr>
          <tr>
            <td height="10" colspan="6">&nbsp;</td>
            </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td height="10">&nbsp;</td>
            <td height="10"><input type="submit" name="submit" value="Add record" /></td>
            <td width="13">&nbsp;</td>
            <td colspan="2"><input type="reset" name="reset" value="Clear Fields" />  &nbsp;&nbsp;&nbsp;<input type="hidden" name="sent_admission" value="2" /></td>
          </tr>
          
          <tr>
            <td height="3" colspan="6"><hr size="3" color="#FFFFFF" align="center" />
              <div align="center"><span class="style4"> </strong></span></div></td>
          </tr>
          <tr>
            <td height="15" colspan="6"> <strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; Sunrise nursery &amp; Primary School 2012 </strong></td>
          </tr>
        </table>
            </div>
          </div>
        </div></td>
      </tr>
    </table>
  </div>
</form>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html>

Thanx in advance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.