Jump to content

Need help spotting PHP error


vtolbert

Recommended Posts

I am attempting to learn PHP but haven't gotten too far yet. I have been working with a consultant to create a site, but he is currently unavailable to help me. One page on the site shows this error:

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/vhosts/tempforcestaffing.com/httpdocs/registration.php:5) in /var/www/vhosts/tempforcestaffing.com/httpdocs/registration.php on line 7

 

Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /var/www/vhosts/tempforcestaffing.com/httpdocs/WA_Universal_Email/WAUE_registration_1.php on line 47

 

I can't spot the error and am hoping someone here can help. I'm using a Linux server hosted by HIWAAY, PHP version 4.3.9. Below is the code for the page.

 

Thanks for your consideration.

 

Vickie

 

<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?> 
<?php
if (!isset($_SESSION)) {
session_start();
}
?><?php require_once("WA_SecurityAssist/WA_SHA1Encryption.php"); ?>
<?php require_once('Connections/tfsecureCon2.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php 
if (isset($_POST["Register_x"]))  {
  $WAFV_Redirect = "";
  $_SESSION['WAVT_registration_Errors'] = "";
  if ($WAFV_Redirect == "")  {
    $WAFV_Redirect = $_SERVER["PHP_SELF"];
  }
  $WAFV_Errors = "";
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactFirstName"]))?$_POST["contactFirstName"]:"") . "",true,1);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactLastName"]))?$_POST["contactLastName"]:"") . "",true,2);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactCompany"]))?$_POST["contactCompany"]:"") . "",true,3);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactAddLine1"]))?$_POST["contactAddLine1"]:"") . "",true,4);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactAddTown"]))?$_POST["contactAddTown"]:"") . "",true,5);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["stateID"]))?$_POST["stateID"]:"") . "",true,6);
  $WAFV_Errors .= WAValidateZC(((isset($_POST["contactZip"]))?$_POST["contactZip"]:"") . "",true,true,true,false,true,7);
  $WAFV_Errors .= WAValidatePN(((isset($_POST["contactPhone"]))?$_POST["contactPhone"]:"") . "",false,true,true,;
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactEmployees"]))?$_POST["contactEmployees"]:"") . "",true,9);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["industryID"]))?$_POST["industryID"]:"") . "",true,10);
  $WAFV_Errors .= WAValidateEM(((isset($_POST["contactEmail"]))?$_POST["contactEmail"]:"") . "",true,12);
  $WAFV_Errors .= WAValidateRQ(((isset($_POST["contactPassword"]))?$_POST["contactPassword"]:"") . "",true,13);

  if ($WAFV_Errors != "")  {
    PostResult($WAFV_Redirect,$WAFV_Errors,"registration");
  }
}
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
?>
<?php
// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
  $MM_dupKeyRedirect="emailPW.php?duplicate=true";
  $loginUsername = $_POST['contactEmail'];
  $LoginRS__query = "SELECT contactEmail FROM contacts WHERE contactEmail='" . $loginUsername . "'";
  mysql_select_db($database_tfsecureCon2, $tfsecureCon2);
  $LoginRS=mysql_query($LoginRS__query, $tfsecureCon2) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);

  //if there is a row in the database, the username was found - can not add the requested username
  if($loginFoundUser){
    $MM_qsChar = "?";
    //append the username to the redirect page
    if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
    $MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar ."requsername=".$loginUsername;
    header ("Location: $MM_dupKeyRedirect");
    exit;
  }
}
?>
<?php 
// WA Application Builder Insert
if (isset($_POST["Register_x"])) // Trigger
{
  $WA_connection = $tfsecureCon2;
  $WA_table = "contacts";
  $WA_sessionName = "contactID";
  $WA_redirectURL = "";
  $WA_keepQueryString = false;
  $WA_indexField = "contactID";
  $WA_fieldNamesStr = "contactFirstName|contactMiddleName|contactLastName|contactCompany|contactAddLine1|contactAddLine2|contactAddTown|stateID|contactZip|contactPhone|contactEmployees|industryID|contactReferredBy|contactPassword|contactEmail";
  $WA_fieldValuesStr = "".((isset($_POST["contactFirstName"]))?$_POST["contactFirstName"]:"")  ."" . "|" . "".((isset($_POST["contactMiddleName"]))?$_POST["contactMiddleName"]:"")  ."" . "|" . "".((isset($_POST["contactLastName"]))?$_POST["contactLastName"]:"")  ."" . "|" . "".((isset($_POST["contactCompany"]))?$_POST["contactCompany"]:"")  ."" . "|" . "".((isset($_POST["contactAddLine1"]))?$_POST["contactAddLine1"]:"")  ."" . "|" . "".((isset($_POST["contactAddLine2"]))?$_POST["contactAddLine2"]:"")  ."" . "|" . "".((isset($_POST["contactAddTown"]))?$_POST["contactAddTown"]:"")  ."" . "|" . "".((isset($_POST["stateID"]))?$_POST["stateID"]:"")  ."" . "|" . "".((isset($_POST["contactZip"]))?$_POST["contactZip"]:"")  ."" . "|" . "".((isset($_POST["contactPhone"]))?$_POST["contactPhone"]:"")  ."" . "|" . "".((isset($_POST["contactEmployees"]))?$_POST["contactEmployees"]:"")  ."" . "|" . "".((isset($_POST["industryID"]))?$_POST["industryID"]:"")  ."" . "|" . "".((isset($_POST["contactReferredBy"]))?$_POST["contactReferredBy"]:"")  ."" . "|" . "".WA_SHA1Encryption(((isset($_POST["contactPassword"]))?$_POST["contactPassword"]:""))  ."" . "|" . "".((isset($_POST["contactEmail"]))?$_POST["contactEmail"]:"")  ."";
  $WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|none,none,NULL|',none,''|',none,''|none,none,NULL|',none,''|',none,''|',none,''|',none,''";
  $WA_fieldNames = explode("|", $WA_fieldNamesStr);
  $WA_fieldValues = explode("|", $WA_fieldValuesStr);
  $WA_columns = explode("|", $WA_columnTypesStr);
  $WA_connectionDB = $database_tfsecureCon2;
  mysql_select_db($WA_connectionDB, $WA_connection);
  if (!session_id()) session_start();
  $insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
  $WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
  $MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
  $_SESSION[$WA_sessionName] = mysql_insert_id();
  if ($WA_redirectURL != "")  {
    if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
      $WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
    }
    header("Location: ".$WA_redirectURL);
  }
}
?>
<?php
mysql_select_db($database_tfsecureCon2, $tfsecureCon2);
$query_rsStates = "SELECT stateinfo.stateID, stateinfo.stateAbbr, stateinfo.stateName FROM stateinfo ORDER BY stateinfo.stateName";
$rsStates = mysql_query($query_rsStates, $tfsecureCon2) or die(mysql_error());
$row_rsStates = mysql_fetch_assoc($rsStates);
$totalRows_rsStates = mysql_num_rows($rsStates);

mysql_select_db($database_tfsecureCon2, $tfsecureCon2);
$query_rsIndustry = "SELECT industry.industryID, industry.industryDesc FROM industry ORDER BY industry.industryDesc";
$rsIndustry = mysql_query($query_rsIndustry, $tfsecureCon2) or die(mysql_error());
$row_rsIndustry = mysql_fetch_assoc($rsIndustry);
$totalRows_rsIndustry = mysql_num_rows($rsIndustry);

$colname_rsRegistrationDetails = "-1";
if (isset($_SESSION['contactID'])) {
  $colname_rsRegistrationDetails = (get_magic_quotes_gpc()) ? $_SESSION['contactID'] : addslashes($_SESSION['contactID']);
}
mysql_select_db($database_tfsecureCon2, $tfsecureCon2);
$query_rsRegistrationDetails = sprintf("SELECT contacts.*, stateinfo.stateAbbr, industry.industryDesc FROM ((contacts INNER JOIN stateinfo USING (stateID)) INNER JOIN industry USING (industryID)) WHERE contactID = %s", GetSQLValueString($colname_rsRegistrationDetails, "int"));
$rsRegistrationDetails = mysql_query($query_rsRegistrationDetails, $tfsecureCon2) or die(mysql_error());
$row_rsRegistrationDetails = mysql_fetch_assoc($rsRegistrationDetails);
$totalRows_rsRegistrationDetails = mysql_num_rows($rsRegistrationDetails);

mysql_select_db($database_tfsecureCon2, $tfsecureCon2);
$query_rsTempForceAdmin = "SELECT contactFirstName, contactMiddleName, contactLastName, contacts.contactEmail FROM contacts WHERE memberID = 4";
$rsTempForceAdmin = mysql_query($query_rsTempForceAdmin, $tfsecureCon2) or die(mysql_error());
$row_rsTempForceAdmin = mysql_fetch_assoc($rsTempForceAdmin);
$totalRows_rsTempForceAdmin = mysql_num_rows($rsTempForceAdmin);
?>
<?php require_once("WA_Universal_Email/Mail_for_Linux_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?php
if ((!($totalRows_rsTempForceAdmin == 0)))     {
  //WA Universal Email object="Mail for Linux"
  //Send Loop Once Per Entry
    do {
    $RecipientEmail = "".$row_rsTempForceAdmin["contactEmail"]  ."";include("WA_Universal_Email/WAUE_registration_1.php");
      } while ($row_rsTempForceAdmin = mysql_fetch_assoc($rsTempForceAdmin));
  $RecipientEmail = "vtolbert@centurytel.net";include("WA_Universal_Email/WAUE_registration_1.php");

  //Send Mail All Entries
  if ("logIn.php"!="")     {
    header("Location: logIn.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"><!-- InstanceBegin template="/Templates/template30.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Registration</title>
<!-- InstanceEndEditable -->
<!--[if IE 5]>
<style type="text/css"> 
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixRtHdr #sidebar1 { width: 220px; }
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixRtHdr #sidebar1 { padding-top: 30px; }
.twoColFixRtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<link rel="stylesheet" type="text/css" href="tempF30.css"  />
<style type="text/css">
<!--

body {
background-image: url(images/TFbkg.gif);
}
-->
</style>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<!-- InstanceBeginEditable name="head" -->
<link href="WA_SecurityAssist/styles/Ultramodern_Slate.css" rel="stylesheet" type="text/css" />
<link href="WA_SecurityAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
</head>
<body class="twoColFixRtHdr">
<div id="container">
  <div id="header">
    <div id="toplinks"><a href="pages/about.php">About</a> | <a href="pages/contact.php">Contact</a> | <?php echo (isset($_SESSION['contactID']))?"<a href=\"../logout.php\">Logout</a>":"<a href=\"../logIn.php\" target=\"_blank\">Login</a>" ?></div>
    <img src="images/TF4c.gif" alt="TempForce Staffing Solutions" width="303" height="74" class="logo" /> <a href="index.php"><img src="images/HomeTab3.gif" alt="Home" border="0" /></a><a href="pages/employees.php"><img src="images/JSeekTab.gif" alt="Job Seeker" border="0" /></a><a href="pages/clients.php"><img src="images/ClientTab3.gif" alt="Clients" border="0" /></a><img src="images/StaffingTab3.gif" alt="Staffing Solutions" />
    <!-- end #header -->
  </div>
  <div id="bodybox">
    <div id="sidebar1"><img src="images/busimsm.jpg" alt="Your Staffing Solution" width="88" height="95" class="topimg" /><img class="topimg" src="images/woman2.jpg" alt="Smart Staffing Solutions" /><img class="topimg" src="images/workersm.jpg" alt="Qualified Employees" /><img class="topimg" src="images/womansm.jpg" alt="Employment services" />
      <!-- end #sidebar1 -->
    </div>
    <div id="mainContent"> <!-- InstanceBeginEditable name="mainContent" -->
      <div id="RegistrationContainer" class="WAATK">
      <a href="logIn.php">Login</a>
        <form method="post" name="WAATKRegistrationForm" id="WAATKRegistrationForm">
          <h1>Registration</h1>
          <p>Please Note:<br />
            All fields marked <span class="required">*</span> are required.</p>
          <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "" . ",") !== false || "" == ""))  {
    if (!(false))  {
?>
            <div id="errors">
              <h3>There are some errors in your form.</h3>
              <p>Data has not been saved, please check and rectify these errors:</p>
              <ul>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "1" . ",") !== false || "1" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter your first name</li>
                  <?php //WAFV_Conditional registration.php registration(1:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "2" . ",") !== false || "2" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter your last name </li>
                  <?php //WAFV_Conditional registration.php registration(2:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "3" . ",") !== false || "3" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter your company name</li>
                  <?php //WAFV_Conditional registration.php registration(3:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "4" . ",") !== false || "4" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter the 1st line of your address</li>
                  <?php //WAFV_Conditional registration.php registration(4:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "5" . ",") !== false || "5" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter a city</li>
                  <?php //WAFV_Conditional registration.php registration(5:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "6" . ",") !== false || "6" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please select a state</li>
                  <?php //WAFV_Conditional registration.php registration(6:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "7" . ",") !== false || "7" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter a valid zip code</li>
                  <?php //WAFV_Conditional registration.php registration(7:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "8" . ",") !== false || "8" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter your phone number</li>
                  <?php //WAFV_Conditional registration.php registration(8:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "9" . ",") !== false || "9" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter a value for no. of employees</li>
                  <?php //WAFV_Conditional registration.php registration(9:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "10" . ",") !== false || "10" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please select an industry type</li>
                  <?php //WAFV_Conditional registration.php registration(10:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "12" . ",") !== false || "12" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter your email address</li>
                  <?php //WAFV_Conditional registration.php registration(12:)
    }
  }
}?>
                <?php
if (ValidatedField("registration","registration"))  {
  if ((strpos((",".ValidatedField("registration","registration").","), "," . "13" . ",") !== false || "13" == ""))  {
    if (!(false))  {
?>
                  <li class="required">Please enter a password</li>
                  <?php //WAFV_Conditional registration.php registration(13:)
    }
  }
}?>
              </ul>
            </div>
            <?php //WAFV_Conditional registration.php registration( 
    }
  }
}?>
          <table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
            <tr>
              <th>First Name:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactFirstName" id="contactFirstName" value="<?php echo(ValidatedField("registration","contactFirstName")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Middle Name:</th>
              <td><input type="text" class="WAATKTextField" name="contactMiddleName" id="contactMiddleName" value="<?php echo(ValidatedField("registration","contactMiddleName")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Last Name:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactLastName" id="contactLastName" value="<?php echo(ValidatedField("registration","contactLastName")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Company:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactCompany" id="contactCompany" value="<?php echo(ValidatedField("registration","contactCompany")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Address Line1:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactAddLine1" id="contactAddLine1" value="<?php echo(ValidatedField("registration","contactAddLine1")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Address Line2:</th>
              <td><input type="text" class="WAATKTextField" name="contactAddLine2" id="contactAddLine2" value="<?php echo(ValidatedField("registration","contactAddLine2")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>City:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactAddTown" id="contactAddTown" value="<?php echo(ValidatedField("registration","contactAddTown")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>State:<span class="required">*</span></th>
              <td><select name="stateID" id="stateID">
                  <option value="" <?php if (!(strcmp("", (ValidatedField("registration","stateID"))))) {echo "selected=\"selected\"";} ?>>Select a State/Province</option>
                  <option value="" <?php if (!(strcmp("", (ValidatedField("registration","stateID"))))) {echo "selected=\"selected\"";} ?>>---------------</option>
                  <?php
do {  
?><option value="<?php echo $row_rsStates['stateID']?>"<?php if (!(strcmp($row_rsStates['stateID'], (ValidatedField("registration","stateID"))))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsStates['stateName']?></option>
                  <?php
} while ($row_rsStates = mysql_fetch_assoc($rsStates));
  $rows = mysql_num_rows($rsStates);
  if($rows > 0) {
      mysql_data_seek($rsStates, 0);
  $row_rsStates = mysql_fetch_assoc($rsStates);
  }
?>
                </select></td>
            </tr>
            <tr>
              <th>Zip:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactZip" id="contactZip" value="<?php echo(ValidatedField("registration","contactZip")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Phone No:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactPhone" id="contactPhone" value="<?php echo(ValidatedField("registration","contactPhone")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>No. of Employees:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactEmployees" id="contactEmployees" value="<?php echo(ValidatedField("registration","contactEmployees")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Industry:<span class="required">*</span></th>
              <td><select  name="industryID" id="industryID">
                  <option value="" <?php if (!(strcmp("", (ValidatedField("registration","industryID"))))) {echo "selected=\"selected\"";} ?>>Select an Industry Type</option>
                  <?php
do {  
?><option value="<?php echo $row_rsIndustry['industryID']?>"<?php if (!(strcmp($row_rsIndustry['industryID'], (ValidatedField("registration","industryID"))))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsIndustry['industryDesc']?></option>
                  <?php
} while ($row_rsIndustry = mysql_fetch_assoc($rsIndustry));
  $rows = mysql_num_rows($rsIndustry);
  if($rows > 0) {
      mysql_data_seek($rsIndustry, 0);
  $row_rsIndustry = mysql_fetch_assoc($rsIndustry);
  }
?>
                </select></td>
            </tr>
            <tr>
              <th>Referred By:</th>
              <td><input type="text" class="WAATKTextField" name="contactReferredBy" id="contactReferredBy" value="<?php echo(ValidatedField("registration","contactReferredBy")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Email:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactEmail" id="contactEmail" value="<?php echo(ValidatedField("registration","contactEmail")) ?>" size="28" /></td>
            </tr>
            <tr>
              <th>Password:<span class="required">*</span></th>
              <td><input type="text" class="WAATKTextField" name="contactPassword" id="contactPassword" value="<?php echo(ValidatedField("registration","contactPassword")) ?>" size="28" /></td>
            </tr>
          </table>
          <div class="WAATKButtonRow">
            <input type="image" hspace="0" vspace="0" border="0" name="Register" id="Register" value="Register" alt="Register" src="WA_SecurityAssist/images/Slate/Ultramodern_register.gif"  />
            <input name="MM_insert" type="hidden" value="" />
          </div>
        </form>
      </div>
      <!-- InstanceEndEditable -->
      <!-- end #mainContent -->
    </div>
    <br class="clearfloat" />
  </div>
  <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
  <div id="footer">
    <p><a href="index.php">Home</a> | <a href="pages/about.php">About</a> | <a href="pages/contact.php">Contact</a> | <?php echo (isset($_SESSION['contactID']))?"<a href=\"../logout.php\">Logout</a>":"<a href=\"../logIn.php\" target=\"_blank\">Login</a>" ?></p>
    <!-- end #footer -->
  </div>
  <!-- end #container -->
</div>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($rsStates);

mysql_free_result($rsIndustry);

mysql_free_result($rsRegistrationDetails);

mysql_free_result($rsTempForceAdmin);
?>

 

Link to comment
Share on other sites

the problem may be the space between your (unnecessary) second set of php open/close tags. remove those tags. and you must use session_start() regardless of whether there is a session or not, so no need to check:

 

<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
session_start();

// etc.

Link to comment
Share on other sites

Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /var/www/vhosts/tempforcestaffing.com/httpdocs/WA_Universal_Email/WAUE_registration_1.php on line 47

 

 

This error is worrying - did you modify this file in any way?

 

If you did not modify it, then it's possible you have a php version different from what the Web Assist extension requires.

 

In either case, can you show us the contents of WAUE_registration_1.php ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.