hjkhghtjhjjhjhjhjhjjhjhjjhrrtrtoirh
bnmbertsurrttrtrtrtrjhjhjjhjhhjhjhjhf'tdfg
/
home
/
u506006416
/
domains
/
nitinkashyap.in
/
balaji-lagan
/
Upload FileeE
HOME
<?php session_start(); include('dbconnect.php'); if(isset($_POST['reg'])) { $email=$_POST['email']; $password=md5 ($_POST['password']); $mobile=$_POST['mobile']; $name=$_POST['name']; $gender=$_POST['gender']; $Dob=$_POST['year']; $month=$_POST['month']; $day=$_POST['day']; $DOB=$Dob.'-'.$month.'-'.$day; $religion=$_POST['religion']; $mothertounge=$_POST['mothertounge']; $residence=$_POST['country']; $terms=$_POST['terms']; if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/png")) && ($_FILES["file"]["size"] < 2000000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { "memphoto1: " . $_FILES["file"]["name"] . "<br />"; "Type: " . $_FILES["file"]["type"] . "<br />"; "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; move_uploaded_file($_FILES["file"]["tmp_name"], "memphoto1/" . $_FILES["file"]["name"]); "Stored in: " . "memphoto1/" . $_FILES["file"]["name"]; $namefile=$_FILES["file"]["name"]; if($terms=='true') { $sql=mysql_query("insert into register (`ID`,`ConfirmEmail`,`ConfirmPassword`,`Mobile`,`Name`,`Gender`,`DOB`,`Religion`,`PE_MotherTongue`,`Country`,`Photo1`) values ('null','".$_POST['email']."','$password','$mobile','$name','$gender','$DOB','$religion','$mothertounge','$residence','$namefile')"); } else { $_SESSION['info_msg']='first check the term and condition'; echo "<script language=javascript>document.location.href='index.php'</script>"; } if($sql) { $_SESSION['ConfirmEmail']= strip_tags($_POST['email']); $stremail = $_SESSION['ConfirmEmail']; $d=$_POST['password']; $_SESSION['Mobile']=$_POST['mobile']; include("sendsms.php"); print "<script>"; print " self.location='register_confirm.php?emid=$stremail && id=$d';"; // Comment this line if you don't want to redirect print "</script>"; //echo "Now you can <a href=login.html>log in</a>"; $_SESSION['info_msg']='you registred sucessfully check your mail inbox'; echo "<script language=javascript>document.location.href='index.php'</script>"; } } } else { $_SESSION['info_msg']='your image can not upload this time due to some technical problem plz try after some time'; echo "<script language=javascript>document.location.href='index.php'</script>"; } } ?>