= 0)
="Register.php"here</a> to return to registration page') ;
}
else{
require ("connection.php");
require ("image_process.php");
$conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die("Could not connect to MySQL database. ". mysql_error());
mysql_select_db(SQL_DB,$conn) or die(mysql_error());
$_SESSION['fullname']=$_POST['fullname'];
$_SESSION['email']=$_POST['email'];
$sex = $_POST['sex'];
$height = $_POST['height'];
$_SESSION['career'] = $_POST['career'];
$_SESSION['phone']=$_POST['phone'];
$_SESSION['city']=$_POST['city'];
$about = $_POST['about'];
$_SESSION['DepositorName'] = $_POST['DepositorName'];
$_SESSION['BankName'] = $_POST['BankName'];
$TellerNo = $_POST['TellerNo'];
$_SESSION['DepositorPhone'] = $_POST['DepositorPhone'];
$_SESSION['refname']=$_POST['refname'];
$_SESSION['refphone']=$_POST['refphone'];
$date=date('Y-m-d');
$_SESSION['date'] = $date;
//$_SESSION['num'] = $numb;
$_SESSION['image']= $mypix;
$sqlb="insert into participant (`fullname`,`email`,`sex`,`height`,`career`,`phone`,`city`,`about`,`DepositorName`,`BankName`,`TellerNo`,`DepositorPhone`,`refname`,`refphone`,`date`,`image`)
values('$_POST[fullname]','$_POST[email]','$_POST[sex]','$_POST[height]','$_POST[career]','$_POST[phone]','$_POST[city]','$_POST[about]','$_POST[DepositorName]','$_POST[BankName]','$_POST[TellerNo]','$_POST[DepositorPhone]','$_POST[refname]','$_POST[refphone]','date','$mypix')" or die(mysql_error());
mysql_query($sqlb) or die(mysql_error());
echo "your detail has been captured successfully.";
//header("location:print.php");
}
//echo "<font color='red'><b>$sname</b></font> has been saved successfully.Click <a href='form2.php'>here</a> to get your place of primary posting...";
//echo "<br>";
//echo "<b>Click <a href='reg.php'>here</a> fill another form</b>";
?>
I have a form which image is included
after submiting.... i get the first error:
Please you must upload a picture. Click here to return to registration page.. Pls MAy i know where am wrong?