php not functioning
<p>i am using php now .. and i am passing the data and want to store it into the database. when the register button is press, it ll come to this php page and this page will check the input and if no problem , it ll store it into the database. but now, no matter it is correct or not. i didnt display anything .. anyone can help .. need to solve this urgent .. thanks in advance.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;?php
extract( $_POST );
$iserror = false;

if ( isset ( $submit ) )
 {

 if ( $name == "" )
     {
 $formerrors[ "nameerror" ] = true;
 $iserror = true;
 } // end if

 if ( $username == "" ) 
 {
 $formerrors[ "usernameerror" ] = true;
 $iserror = true;
 } // end if

  if ( $password == "" ) 
 {
 $formerrors[ "password" ] = true;
 $iserror = true;
 } // end if

 if ( $email == "" )
 {
     $formerrors[ "emailerror" ] = true;
 $iserror = true;
 } // end if

  if ( $address == "" )
 {
 $formerrors[ "addresserror" ] = true;
 $iserror = true;
 } // end if

 if ( !ereg( "^\([0-9]{3}\)[0-9]{3}-[0-9]{4}$", $phone ) )
 {
 $formerrors[ "phoneerror" ] = true;
 $iserror = true;
 } // end if


 if ( !$iserror )
 {
 // build INSERT query 
 $query = "INSERT INTO customer " .
 "( Customer_Id,Customer_Name, Customer_Phone, Customer_Email,Customer_Address)" .
 "VALUES ( '$username','$name',    ". 
  "'" . quotemeta( $phone ) . "', '$email', '$address' )";

 $query1 = "INSERT INTO secret " .
"(Customer_Id,Customer_Password)" .
"VALUES ('$username','password')"; 

  $query ="insert into login (Customer_Id,Customer_Password)" .  
  "values ('$username',$password)";

 if ( !( $conn = mysql_connect( "localhost", "root", "" ) ) )
 die( "Could not connect to database" );

 if ( !mysql_select_db( "xyz", $conn ))
 die( "Could not open database" );

if(!($result= mysql_query($query,$conn) ) )
 die("could not insert query");

if(!($result= mysql_query($query1,$conn) ) )
 die("could not insert query1");

 mysql_close( $conn ); 
 print("Register success ");
 }
 }
 ?&gt;

 &lt;/body&gt;
   &lt;/html&gt;&gt;
</code></pre>
