Galera , estou com um poblema no meu formulario esta dando um erro na hora da visualização dele.

Parse error: syntax error, unexpected ';' in C:\wamp\www\Cadastro.php on line 51


Codigos dele Sao

Php
Código PHP:
<?php virtual('/Connections/sistemaCadastro.php'); ?>
<?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;
}
}

$editFormAction $_SERVER['PHP_SELF'];
if (isset(
$_SERVER['QUERY_STRING'])) {
  
$editFormAction .= "?" htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset(
$_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
       
//confere se a senha combina
       
$cadastro false;
       if(
$_POST['usoSenha']== $_POST ['usosenha2']){
              
$cadastro true;
     }
        if(
$cadastro {      
       
  
$insertSQL sprintf("INSERT INTO usuarios (usuid, usuNome, usuEmail, usoSenha, usuCodigo, usuData) VALUES (%s, %s, %s, %s, %s, %s)",
                       
GetSQLValueString($_POST['usuid'], "int"),
                       
GetSQLValueString($_POST['usuNome'], "text"),
                       
GetSQLValueString($_POST['usuEmail'], "text"),
                       
GetSQLValueString(md5($_POST['usoSenha']), "text"),
                       
GetSQLValueString($_POST['usuCodigo'], "text"),
                       
GetSQLValueString($_POST['usuData'], "date"));

  
mysql_select_db($database_sistemaCadastro$sistemaCadastro);
  
$Result1 mysql_query($insertSQL$sistemaCadastro) or die(mysql_error());

  
$insertGoTo "login.php";
  if (isset(
$_SERVER['QUERY_STRING'])) {
    
$insertGoTo .= (strpos($insertGoTo'?')) ? "&" "?";
    
$insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  
header(sprintf("Location: %s"$insertGoTo));
  
    }else{
    
             
$msg_erro 'As senhas digitadas nao conferem';
      }
?>

HTML
Código HTML:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<?php if(isset( $msg_erro)):?>
<p><?php echo $msg_erro;?></p>
<?php endif; ?>

<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
  <table align="center">
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Login id:</td>
      <td><input type="text" name="usuid" value="" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Nome:</td>
      <td><input type="text" name="usuNome" value="" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">Email:</td>
      <td><input type="text" name="usuEmail" value="" size="32" /></td>
    </tr>
       <tr valign="baseline">
      <td nowrap="nowrap" align="right">Senha:</td>
      <td><input type="text" name="usoSenha" value="" size="32" /></td>
    </tr>
       <tr valign="baseline">
      <td nowrap="nowrap" align="right">Confirme a Senha:</td>
      <td><input type="text" name="usoSenha2" value="" size="32" /></td>
    </tr>
  
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">&nbsp;</td>
      <td><input type="submit" value="Cadastrar" /></td>
    </tr>
   
  </table>
  <input type="hidden" name="usuCodigo" value="<?php echo md5(uniqid(microtime()));?>" />
  <input type="hidden" name="usuData" value="" />
  <input type="hidden" name="MM_insert" value="form1" />
</form>
<p>&nbsp;</p>
</body>
</html>

agradeço des de já.