ok that was fun...you where missing a bracet before an else, I can't remember where it was so i'll just copy and paste your code back:
<?php # Script 18 - after_registration.php
// This is the next step after registration.
// Include the configuration file for error management and such.
require_once ('includes/config.inc');
// Set the page title and include the HTML header.
$page_title = 'Awakening Empire';
include_once ('includes/header.html');
// If no civname variable exists, redirect the user.
if (!isset($_SESSION['civname'])) {
header ("Location: <a href=\"http://\" target=\"_blank\">[url]http://[/url]</a>" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/index.php");
ob_end_clean();
exit();
}
else {
if (isset($_POST['submit']))
{ // Handle the form.
require_once ('../mysql_connect.php'); // Connect to the database.
// At first, assume all entered is false.
$ke = FALSE;
$kcv = FALSE;
$kcn = FALSE;
$kp = FALSE;
$ec = FALSE;
// Check for a value for extraction knowledge.
if (eregi ("^[0-9]{2}", trim($_POST['k_extract']))) {
$ke = (((escape_data($_POST['k_extract'])) * 3000) + 5000);
}
else {
$ke = FALSE;
echo '<p><font color="red" size="+1">Please enter or change the extraction
knowledge value.</font></p>';
}
// Check for a value for conservation knowledge.
if (eregi ("^[0-9]{2}", trim($_POST['k_conserv']))) {
$kcv = (((escape_data($_POST['k_conserv'])) * 3000) + 5000);
}
}else {
$kcv = FALSE;
echo '<p><font color="red" size="+1">Please enter or change the conservation knowledge value.</font></p>';
}
// Check for a value for construction knowledge.
if (eregi ("^[0-9]{2}", trim($_POST['k_construct'])))
{
$kcn = (((escape_data($_POST['k_construct'])) * 3000) + 5000);
}
else {
$kcn = FALSE;
echo '<p><font color="red" size="+1">Please enter or change the construction knowledge value.</font></p>';
}
// Check for a value for propulsion knowledge.
if (eregi ("^[0-9]{2}", trim($_POST['k_propel']))) {
$kp = (((escape_data($_POST['k_propel'])) * 3000) + 5000);
}
else {
$kp = FALSE;
echo '<p><font color="red" size="+1">Please enter or change the propulsion knowledge value.</font></p>';
}
// Check for a value for ethnocentric.
if (eregi ("^[0-9]{3}", trim($_POST['ethnocentric']))) {
if ((($_POST['ethnocentric']) <= 100) && (($_POST['ethnocentric']) >= 0)) {
$ec = escape_data($_POST['ethnocentric']);
}
}
else
{
$ec = FALSE;
echo '<p><font color="red" size="+1">Please enter or change the ethnocentric value.</font></p>';
}
// Check to see if the combined knowledge value is not equal to 20.
if ((($_POST['k_extract']) + ($_POST['k_conserve']) + ($_POST['k_construct']) + ($_POST['k_porpel'])) != 20) {
$ke = FALSE;
$kcn = FALSE;
$kcv = FALSE;
$kp = FALSE;
echo '<p><font color="red" size="+1">Please change one or more knowledge values so that the total equals 20.</font></p>';
}
if ($ke && $kcn && $kcv && $kp && $ec) {
// If everything's okay.
// Set $uid to the user_id cookie value.
$uid = ($_SESSION['user_id']);
//Make sure there is not already a value for the user.
$query = "SELECT user_id FROM users_status_macro WHERE user_id='$uid'";
$result = @mysql_query ($query);
if (!($result)) { // If the has been no values entered for the user.
// Add the information
$query = "INSERT INTO users_macro_status (user_id, k_extract, k_conserv, k_construct, k_propel, ethnocentric) VALUES ('$uid', '$ke', '$kcv', '$kcn', '$kp', '$ec')";
$result = @mysql_query ($query); // Run query.
// If it ran okay.
if ($result) {
ob_end_clean(); // Delete the buffer.
header ("Location: [url]http://[/url]" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/index.php");
exit();
}
else{
// If it did not run okay.
echo '<p><font color="red" size="+1"> Information was not added due to a system error. We appologize for any incovenience. Please contact the an administrator at the sites forum (<a href="http://apolloares.proboards18.com" target="_blank">[url]http://apolloares.proboards18.com[/url]</a>).';
}
}
else { // Values already entered.
echo '<p><font color="red" size="+1">Values have been already enter for you.</font></p>';
}
mysql_close (); // Close the database connectiuon.
}
else {
// If one of the data tests failed.
echo '<p><font color="red" size="+1">Please try again.</font></p>';
}
} // End of the main conditional.
?>
<h1>Skills and Personality Type</h1>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<fieldset>
<p>Assign 20 points to the following:</p>
<p><b>Extraction Knowledge</b>
<input type="text" name="k_extract" size="2" maxlength="20" value="<?php if (isset($_POST['k_extract'])) echo $_POST['k_extract']; ?>" /></p>
<p><b>Conservation Knowledge</b>
<input type="text" name="k_conserv" size="2" maxlength="20" value="<?php if (isset($_POST['k_conserv'])) echo $_POST['k_conserv']; ?>" /></p>
<p><b>Construction Knowledge</b>
<input type="text" name="k_construct" size="2" maxlength="20" value="<?php if (isset($_POST['k_construct'])) echo $_POST['k_construct']; ?>" /></p>
<p><b>Propulsion Knowledge</b>
<input type="text" name="k_propel" size="2" maxlength="20" value="<?php if (isset($_POST['k_propel'])) echo $_POST['k_propel']; ?>" /></p>
<p> </p>
<p>Choose how ethnocentric your civilization is (0-100):</p>
<p class="MsoNormal"><b>Ethnocentric </b>
<input type="text" name="ethnocentric" size="3" maxlength="20" value="<?php if (isset($_POST['ethnocentric'])) echo $_POST['ethnocentric']; ?>" /></p>
<div align="center"><input type="submit" name="submit" value="Submit" /></div>
</form>
<!-- End of Form -->
<?php // Include the HTML footer file.
include_once ('includes/footer.html');
?>
It wasn't an unexpected $, it was an unexpected end of script.
Zend- Dont accept anything else.