Forum Moderators: coopster
<html>
<head>
<title>Index</title>
</head>
<div style="position: absolute; width: 1146px; height: 842px; z-index: 1; left:10px; top:1px" id="layer2" align="center">
<body background="E-Filing%20Management%20System%20Picture/Snow.gif">
<p align="center">
<img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" height="245"></p>
<p align="center"><span lang="zh-cn"> </span></p>
<p align="center"><span lang="zh-cn"><img border="0" src="E-Filing%20Management%20System%20Picture/Association.gif" width="491" height="74"></span></p>
<p align="center"><span lang="zh-cn"> </span></p>
<form method="post" action="AssociationEdit.php">
<?php$connection = mysql_connect("localhost", "root", "")
or die("<font color='#FFFFFF'>Could not connect to MySQL </font>" .mysql_error() );
$selection = mysql_select_db("efiling")
or die("<font color='#FFFFFF'>Unable to select database. </font>" .mysql_error());
echo "<font size='4' face='Arial Rounded MT Bold'><font color='#FFFFFF'><span lang='en-us'>Please select a group : </font></span>";
echo"<select name='an'>";
echo "<option>---Please Select---</option>";
echo "<option value='A - H' selected>A - H</option>";
echo "<option value ='I - Q'>I - Q</option>";
echo "<option value ='R - Z'>R - Z</option>";
echo "</select>  ";
echo "<input type='submit' name='submit' value='Proceed'>";
if(isset($_POST["submit"]))
{
$an = $_POST["an"];
$submit = $_POST["submit"];
if($submit=="proceed")
{
$connection = mysql_connect("localhost", "root", "")
or die("<font color='#FFFFFF'>Could not connect to MySQL</font>" .mysql_error() );
$selection = mysql_select_db("efiling")
or die("<font color='#FFFFFF'>Unable to select database.</font>" .mysql_error());
if(isset($_POST['an']))
{
$an=$_POST["an"];
if($an == "A - G")
{
$sql = "SELECT * from association Where AssociationName BETWEEN 'A%' AND 'H%' ORDER BY AssociationName";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo "<p>";
echo "ID : <input type='text' name='id1' value='$row[ID]' size='40'><br>";
echo "Association Name : <input type='text' name='an1' value='$row[AssociationName]' size='40'><br>";
echo "<input type='submit' name='submit' value='update'>";
}
else if($an == "H - Q")
{
$sql = "SELECT * from association Where AssociationName BETWEEN 'H%' AND 'R%' ORDER BY AssociationName";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo "<p>";
echo "ID : <input type='text' name='id2' value='$row[ID]' size='40'><br>";
echo "Association Name : <input type='text' name='an2' value='$row[AssociationName]' size='40'><br>";
echo "<input type='submit' name='submit' value='update'>";
}
else if($an == "R - Z")
{
$sql = "SELECT * from association Where AssociationName BETWEEN 'R%' AND 'Z%' OR AssociationName LIKE 'Z%' ORDER BY AssociationName";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo "<p>";
echo "ID : <input type='text' name='id3' value='$row[ID]' size='40'><br>";
echo "Association Name : <input type='text' name='an3' value='$row[AssociationName]' size='40'><br>";
echo "<input type='submit' name='submit' value='update'>";
}
}
}
if($submit=="update")
{
$id1 = $_POST["id1"];
$an1 = $_POST["an1"];
$id2 = $_POST["id2"];
$an2 = $_POST["an2"];
$id3 = $_POST["id3"];
$an3 = $_POST["an3"];
$sql = "UPDATE association SET AssociationName = '$an1''$an2''$an3', ID = '$'id1' '$'id2' '$'id3'";
$result = mysql_query($sql);
if (mysql_num_rows($result2) < 1)
{
echo "<hr><h2>Record Updated</h2>";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>The Association Name Has Been Registered, Please Enter Other Association Name</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationAdd.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
}
?>
</form>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
</div>
</body>
</html>
To my understanding BETWEEN is for numbers. and the wildcard is used on LIKE. The only thing I could think of is to have a huge or statement on like.
If anyone has any good ideas for this let him know.
SELECT * from association Where AssociationName LIKE "H%" OR AssociationName LIKE 'I%' ORDER BY AssociationName
connect.php
<?
$DBName = "dbname";
$DBUser = "username";
$DBPass = "password";
$DBHost = "host";
$link = mysql_connect ( $DBHost, $DBUser, $DBPass )
or die("Unable to connect");
mysql_select_db ( $DBName );
?>
close.php
<?
mysql_close ( $link );
?>
Then on your pages.
at the top
include("connect.php");
and at the bottom
include("close.php");
this is my edited coding.
<html>
<head>
<title>Index</title>
</head>
<div style="position: absolute; width: 1146px; height: 842px; z-index: 1; left:10px; top:1px" id="layer2" align="center">
<body background="E-Filing%20Management%20System%20Picture/Snow.gif">
<p align="center">
<img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" height="245"></p>
<p align="center"><span lang="zh-cn"> </span></p>
<p align="center"><span lang="zh-cn"><img border="0" src="E-Filing%20Management%20System%20Picture/Association.gif" width="491" height="74"></span></p>
<p align="center"><span lang="zh-cn"> </span></p>
<form method="post" action="AssociationEdit.php">
<?php $connection = mysql_connect("localhost", "root", "")
or die("<font color='#FFFFFF'>Could not connect to MySQL </font>" .mysql_error() );
$selection = mysql_select_db("efiling")
or die("<font color='#FFFFFF'>Unable to select database. </font>" .mysql_error());
$sql = "SELECT * from association Where AssociationName LIKE 'A%' OR AssociationName LIKE 'B%' OR AssociationName LIKE 'C%' OR AssociationName LIKE 'D%' OR AssociationName LIKE 'E%' OR AssociationName LIKE 'F%' OR AssociationName LIKE 'G%' ORDER BY AssociationName";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo "<p align='center'><input type='text' name='id1' value='$row[ID]' size='11'>";
echo " <input type='text' name='an1' value='$row[AssociationName]' size='77'></p><br>";
echo "<input type='submit' name='submit' value='Update'> ";
echo "<input type='submit' name='submit' value='Back'>";
if(isset($_POST["submit"]))
{
$submit = $_POST["submit"];
$id1 = $_POST["id1"];
$an1 = $_POST["an1"];
if($submit=="Update")
{
$sql2 = "SELECT * from association Where AssociationName='$an1'";
$result2 = mysql_query($sql2)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if (mysql_num_rows($result2) < 1)
{
$id1 = $_POST["id1"];
$an1 = $_POST["an1"];
$sql = "UPDATE association SET AssociationName = '$an1', ID = '$id1' WHERE AssociationName='$an1'";
$result2 = mysql_query($sql);
echo "<hr><h2><font color='#FFFFFF'>Record Updated</font></h2>";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>The Association Name Has Been Registered, Please Enter Other Association Name</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=Association.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Back")
{
print "<script language ='javascript'>window.location.href='Association.php'</script>";
}
}
?>
</form>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
</div>
</body>
</html>
Here is an example how to create the association table.
$query = "CREATE TABLE association (
PID INT(8) NOT NULL AUTO_INCREMENT,
AssociationName VARCHAR (30) NOT NULL,
ID INT (5) NOT NULL,
PRIMARY KEY (PID))";
$temp = mysql_query($query)
or die(mysql_error());
echo "Association Table created. <br>";
Here is an example to add a field.
$query = "ALTER TABLE association ADD(
PID INT(8) NOT NULL AUTO_INCREMENT)";
$temp = mysql_query($query)
or die(mysql_error());
The next step is for updates you need to determine who can update what. If anyone can update anything then there is no need for user authentication. If you are going to limit it, then a user table must be setup and workflow created to support it.
This is just for information.
For the current logic in your query. It will display only the last record found. Here is an example to show what your current results are.
while($row = mysql_fetch_array($result2))
{
echo "<p align='center'><input type='text' name='id1' value='$row[ID]' size='11'>";
echo " <input type='text' name='an1' value='$row[AssociationName]' size='77'></p><br>";
}
echo "<input type='submit' name='submit' value='Update'> ";
Hope this helps, make sure your system is setup correctly. Then, if you get stuck go ahead and post your question. Don't give up it just takes a little time.
<html>
<head>
<title>Index</title>
</head>
<div style="position: absolute; width: 1146px; height: 842px; z-index: 1; left:10px; top:1px" id="layer2" align="center">
<body background="E-Filing%20Management%20System%20Picture/Snow.gif">
<p align="center">
<img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" height="245"></p>
<p align="center"><span lang="zh-cn"> </span></p>
<p align="center"><span lang="zh-cn"><img border="0" src="E-Filing%20Management%20System%20Picture/Association.gif" width="491" height="74"></span></p>
<p align="center"><span lang="zh-cn"> </span></p>
<form method="post" action="AssociationEdit.php">
<?php$connection = mysql_connect("localhost", "root", "")
or die("<font color='#FFFFFF'>Could not connect to MySQL </font>" .mysql_error() );
$selection = mysql_select_db("efiling")
or die("<font color='#FFFFFF'>Unable to select database. </font>" .mysql_error());
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'>Please insert Primary Key : </font></font>";
echo"<input type='text' name='PK' size='6'>";
echo " <input type='submit' name='submit' value='Search'>";
if(isset($_POST["submit"]))
{
$submit = $_POST["submit"];
$PK = $_POST["PK"];
if($submit=="Search")
{
$PK = $_POST["PK"];
$sql = "SELECT * FROM association where PriKey = '$PK'";
$result = mysql_query($sql)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if($row = mysql_fetch_array($result))
{
echo "<p><br><br>";
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'>Index : </font></font><input type='text' name='id' value='$row[ID]' size='11'> ";
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'> Association Name : </font></font><input type='text' name='an' value='$row[AssociationName]' size='77'> ";
echo "<br><br><br><input type='submit' name='submit' value='Update'> ";
echo "<input type='submit' name='submit' value='Back'>";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>You might enter a wrong Primary Key, please check back.</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationEdit.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Update")
{
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$sql2 = "SELECT * from association Where AssociationName='$an'";
$result2 = mysql_query($sql2)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if (mysql_num_rows($result2) <1)
{
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$sql = "UPDATE association SET ID = '$id', AssociationName = '$an' WHERE PriKey='$PK'";
$result = mysql_query($sql);
echo "<hr><h2><font color='#FFFFFF'>Record Updated</font></h2>";
echo "<br><input type='submit' name='submit' value='Back'>";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>The Association Name Has Been Registered, Please Enter Other Association Name</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationEdit.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Back")
{
print "<script language ='javascript'>window.location.href='Association.php'</script>";
}
}
?>
</form>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
</div>
</body>
</html>
Besides, when I search with primary key again, the data it query still the previous one, means no updated.
You would have them first do a search. Then when the results are displayed you would create your form with the hidded value of the PK and let them modify the id and name fields.
if($PK = NULL)
{
Do an insert because this is a new record
}
if($PK != NULL)
{
"UPDATE association SET ID = '$id', AssociationName = '$an' WHERE PriKey='$PK'";
}
The reason that it is not updating is because you are saying that if the number of results are less than 1 then update. So that means it will never update because it it only true when it is 0. Change to this.
if (mysql_num_rows($result2) >=1)
{
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$sql = "UPDATE association SET ID = '$id', AssociationName = '$an' WHERE PriKey='$PK'";
$result = mysql_query($sql);
echo "<hr><h2><font color='#FFFFFF'>Record Updated</font></h2>";
echo "<br><input type='submit' name='submit' value='Back'>";
}
if (mysql_num_rows($result2) >=1)
{
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$sql = "UPDATE association SET ID = '$id', AssociationName = '$an' WHERE PriKey='$PK'";
$result = mysql_query($sql);
echo "<hr><h2><font color='#FFFFFF'>Record Updated</font></h2>";
echo "<br><input type='submit' name='submit' value='Back'>";
}
<html>
<head>
<title>Index</title>
</head>
<div style="position: absolute; width: 1146px; height: 842px; z-index: 1; left:10px; top:1px" id="layer2" align="center">
<body background="E-Filing%20Management%20System%20Picture/Snow.gif">
<p align="center">
<img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" height="245"></p>
<p align="center"><span lang="zh-cn"> </span></p>
<p align="center"><span lang="zh-cn"><img border="0" src="E-Filing%20Management%20System%20Picture/Association.gif" width="491" height="74"></span></p>
<p align="center"><span lang="zh-cn"> </span></p>
<form method="post" action="AssociationEdit.php">
<?php$connection = mysql_connect("localhost", "root", "")
or die("<font color='#FFFFFF'>Could not connect to MySQL </font>" .mysql_error() );
$selection = mysql_select_db("efiling")
or die("<font color='#FFFFFF'>Unable to select database. </font>" .mysql_error());
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'>Please insert Primary Key : </font></font>";
echo"<input type='text' name='PK' size='6'>";
echo " <input type='submit' name='submit' value='Search'>";
if(isset($_POST["submit"]))
{
$submit = $_POST["submit"];
$PK = $_POST["PK"];
if($submit=="Search")
{
$PK = $_POST["PK"];
$sql = "SELECT * FROM association where PriKey = '$PK'";
$result = mysql_query($sql)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if($row = mysql_fetch_array($result))
{
echo "<p><br><br>";
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'>Index : </font></font><input type='text' name='id' value='$row[ID]' size='11'> ";
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'> Association Name : </font></font><input type='text' name='an' value='$row[AssociationName]' size='77'> ";
echo "<br><br><br><input type='submit' name='submit' value='Update'> ";
echo "<input type='submit' name='submit' value='Back'>";
echo "<input type='hidden' name='PK' value='$row[PriKey]'> ";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>You might enter a wrong Primary Key, please check back.</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationEdit.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Update")
{
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$sql2 = "SELECT * from association WHERE AssociationName='$an'";
$result2 = mysql_query($sql2)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if (mysql_num_rows($result2) <1)
{
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$sql = "UPDATE association SET ID = '$id', AssociationName = '$an' WHERE PriKey='$PK'";
$result = mysql_query($sql);
echo "<hr><h2><font color='#FFFFFF'>Record Updated</font></h2>";
echo "<br><input type='submit' name='submit' value='Back'>";
echo "<input type='hidden' name='PK' value='$row[PriKey]'> ";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>The Association Name Has Been Registered, Please Enter Other Association Name</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationEdit.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Back")
{
print "<script language ='javascript'>window.location.href='Association.php'</script>";
}
}
?>
</form>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
<p align="center"></p>
</div>
</body>
</html>
$sql2 = "SELECT * from association Where AssociationName='$an'"; is correct.
<html>
<head>
<title>Index</title>
</head>
<div style="position: absolute; width: 1146px; height: 842px; z-index: 1; left:10px; top:1px" id="layer2" align="center">
<body background="E-Filing%20Management%20System%20Picture/Snow.gif">
<p align="center">
<img border="0" src="E-Filing%20Management%20System%20Picture/logo-RR-gif.gif" width="957" height="245"></p>
<p align="center"><span lang="zh-cn"> </span></p>
<p align="center"><span lang="zh-cn"><img border="0" src="E-Filing%20Management%20System%20Picture/Association.gif" width="491" height="74"></span></p>
<p align="center"><span lang="zh-cn"> </span></p>
<form method="post" action="test.php">
<?php
$submit = $_POST["submit"];
$PK = $_POST["PK"];
$id = $_POST["id"];
$an = $_POST["an"];
$GETPK = $_POST["GETPK"];
$connection = mysql_connect("localhost", "root", "")
or die("<font color='#FFFFFF'>Could not connect to MySQL </font>" .mysql_error() );
$selection = mysql_select_db("efiling")
or die("<font color='#FFFFFF'>Unable to select database. </font>" .mysql_error());
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'>Please insert Primary Key : </font></font>";
echo"<input type='text' name='GETPK' size='6'>";
echo " <input type='submit' name='submit' value='Search'>";
if(isset($_POST["submit"]))
{
if($submit=="Search")
{
$sql = "SELECT * FROM association where PriKey = '$GETPK'";
$result = mysql_query($sql)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if($row = mysql_fetch_array($result))
{
echo "<p><br><br>";
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'>Index : </font></font><input type='text' name='id' value='$row[ID]' size='11'> ";
echo "<font size='3' face='Arial Rounded MT Bold'><font color='#FFFFFF'> Association Name : </font></font><input type='text' name='an' value='$row[AssociationName]' size='77'> ";
echo "<input type='hidden' name='PK' value='$row[PriKey]'> ";
echo "<br><br><br><input type='submit' name='submit' value='Update'> ";
echo "<input type='submit' name='submit' value='Back'>";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>You might enter a wrong Primary Key, please check back.</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationEdit.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Update")
{
$sql2 = "SELECT * from association WHERE AssociationName='$an'";
$result2 = mysql_query($sql2)
or die("<font color='#FFFFFF'>SQL select statement failed</font>");
if (mysql_num_rows($result2) < 1)
{
$sql = "UPDATE association SET ID = '$id', AssociationName = '$an' WHERE PriKey='$PK'";
$result = mysql_query($sql);
echo "<hr><h2><font color='#FFFFFF'>Record Updated</font></h2>";
echo "<br><input type='submit' name='submit' value='Back'>";
}
else
{
print"<p align='center'> </p>
<table width='400' height='200' border='1' align='center' bordercolor='#66FF00'bgcolor='#0000FF'>
<td><div align='center'><font color='#FF0000' size='5'><p>The Association Name Has Been Registered, Please Enter Other Association Name</p> </font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> ";
print "<p align='center'> </p>";
echo "<HTML><META HTTP-EQUIV='REFRESH' CONTENT='2; URL=AssociationEdit.php'>
<CENTER><p> </p><p>
<tr>
<td align='center'><h12>please wait...</h12></td>
</tr>
</table><p> </p><p> </p></CENTER></BODY></HTML>";
}
}
if($submit=="Back")
{
print "<script language ='javascript'>self.location='Association.php'</script>";
}
}
?>
</form>
</div>
</body>
</html>