я пробвай така
<?php
if(isset($_POST))
{
$name = $_POST[user];
$mail = $_POST[mail];
$pass = $_POST[pass];
$wpass = $_POST[wpass];
$query = mssql_query("SELECT mail_addr,memb__pwd,memb___id FROM MEMB_INFO WHERE mail_addr='$mail'");
$row = mssql_fetch_row($query);
$query2 = mssql_query("SELECT...