if($_POST['E-mail'] != "" && $_POST['password'] != "" &&
$_POST['first_name'] != "" && $_POST['last_name'] != "" )
try using empty so its
if(!empty($_POST['E-mail']) && !empty($_POST['password']) &&
!empty($_POST['first_name']) && !empty($_POST['last_name']))
Also you are missing a }
try this
<?php
session_start();
include "conn.php";
include "common-top.php";
if($_POST['submit'] == "register")
{
if(!empty($_POST['E-mail']) && !empty($_POST['password']) && !empty($_POST['first_name']) && !empty($_POST['last_name'])) {
$check_user =$_POST['E-mail'];
$query ='SELECT `Email` '
. ' FROM `user_info` '
. ' WHERE `Email` ="'.$ucheck_user.'" ';
$result = mysql_query($query) or die(mysql_error());
if(mysql_num_rows($result) != 0) {
include "address-exits.php";
}
else {
$results = mysql_query($query) or die(mysql_error());
include "thank-u.php";
}// third if statement closed
} else {
include "form-not-comp.php";
}
} else {
include "register-form.html";// end of top level if statement
}
include "ending.html";