Location: PHPKode > projects > PortalXP - Teacher Edition > PortalXP/PortalXP/adddistrictwrite.php
<?php

require('admin/config.php');
require('admin/connect.php');
include('admin/outputlib.php');

$email = $HTTP_POST_VARS["email"];

if ($submit) {

//process form
$sql = "INSERT INTO district (districtname,districtaddress,districtphone) VALUES ('$districtname','$districtaddress','$districtphone')";
$result = mysql_query($sql);
echo "Thank you.  Your information has been entered.  You will now be redirected to add a school to your new district.

<script language='JavaScript'>

function redirect()
	{ window.location = 'http://www.portalxp.org/addschool.php'}
	setTimeout('redirect();', 500)
	
</script>

\n";

} else {

?>

Go Away



<?php
}
?>
Return current item: PortalXP - Teacher Edition