Location: PHPKode > projects > PortalXP - Teacher Edition > PortalXP/PortalXP/signupwrite.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 teacher (school_id,district_id,title,lastname,firstname,phone,email,teacherpass) VALUES ('$school_id','$district_id','$title','$lastname','$firstname','$phone','$email','$teacherpass')";
$result = mysql_query($sql);
echo "Thank you.  Your information has been entered.  You will now be redirected to the front page.  Please login.

<script language='JavaScript'>

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

\n";

} else {

?>

Go Away



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