错误提示如下  功能上已经能够执行账号注册
Warning: odbc_do(): supplied argument is not a valid ODBC-Link resource in C:\Inetpub\wwwroot\register_do.php on line 41Error
                                 Please enter your Account Information again !<?php
if(isset($_POST[step2])) {
    $errorStr = formStep3();
    if($errorStr!=null){
#echo $errorStr;
require_once('index.php');
 #echo $errorStr;
    }else{
echo "<body style=\"background-color: black; color: white;\"><CENTER><h2>Error</h2><br><h3>Please enter your Account Information again !</h3></CENTER></body>";
    }}
else {
    require_once('index.php');
    $_SESSION[step2] = 1; }function formStep3(){include 'config.php';//select a database to work with
$selected = mssql_select_db('atum2_db_account', $dbhandle)
  or die("Couldn't open database Account"); 
  
    $errors = array();
    $errorStr = null;
if(preg_match("/^[0-9a-zA-Z]{3,15}$/i", $_POST[username])){
$strSql="select * from td_Account where AccountName='$_POST[username]'";
$result = mssql_query($strSql) 
    or die('A error occured: ' . mysql_error());
// Get result count:
$Count = mssql_num_rows($result);
    if ($Count > 0)  $errors[] = "This Accountname already exists, please choose another one.";
}
if ($_POST[username] == "") { echo "<CENTER><b>Error:</b> Please enter a valid Accountname</CENTER>"; exit; }
if ($_POST[password1] == "" OR $_POST[password1] != $_POST[password2] OR $_POST[password2] == "") { echo "<CENTER><b>Error:</b> Please enter a valid Password</CENTER>"; exit;     }else{
$userid= $_POST[username];
    $passwd_user=$_POST[password1];$regquery = "INSERT INTO td_Account (AccountName, Password) VALUES ('$userid', '$passwd_user')";
 $dk_account_result1=odbc_do($account_odbc,$regquery);
 mssql_query($regquery);
     mssql_close($dbhandle);
    }
    #return $errorStr;
}
?>