1) { $dat =date(is); $appno =$appno.$dat; } ?>
1.Carefully Fill in your Details.
2. Upload a recent passport (not more than 50kb).
3. Make sure you enter a valid mail and phone number.
4. Your Application number and password will be sent to your mail or phone number.
Start Application
Last Name:: />
Other Names :: />
Gender::
Upload passport(Max file size::50 kilobytes!!): >
Phone Number:: />
Email:: />
*some fields missing*"; exit(); } if ($image_tempname == null){ echo "
No image selected"; exit(); } $image_tempname= $appno.$image_tempname; //echo $imgsize.'
'; $fz = ($imgsize/1024); if($fz > 50){ echo "
file too large
"; echo $fz."kb"; exit(); } echo md5($fz); echo "
duplication correction successful!!"; //echo '
'; exit(); $insertdata = mysql_query("INSERT INTO application (appno,apppass,lastn,firstn,pno,email,gender,date) VALUES ('$appno','$apppass','$lnm','$fnm','$phone','$email','$gender','$today')") or die(mysql_error()); $insertdata = mysql_query("INSERT INTO applicationupld (appno,apppass) VALUES ('$appno','$apppass')") or die(mysql_error()); $insertdata = mysql_query("INSERT INTO appsingles (appno) VALUES ('$appno')") or die(mysql_error()); $insertdata = mysql_query("INSERT INTO appcomb (appno) VALUES ('$appno')") or die(mysql_error()); $insertdata = mysql_query("INSERT INTO appjamb (appno) VALUES ('$appno')") or die(mysql_error()); if($insertdata){ echo "
application successful initiated
Your Application Number has been sent to your email
Your Application Number is $appno
Your temporary password is $apppass"; } else{ echo "an error ocuured"; exit(); } $today = date("Y-m-d"); //upload image and check for image type //make sure to change your path to match your images directory //$ImageDir ="C:/wampe/www/minieport/images/"; chdir('appimg'); //echo $today.'cool
'; //echo $fnm."-".$lnm.$gender; if (move_uploaded_file($_FILES['image_filename']['tmp_name'],$image_tempname)){ //$image_tempname=mysql_escape_string($image_tempname); $insert = "UPDATE applicationupld SET imgcap='$image_tempname' WHERE appno ='$appno'"; $insertresults = mysql_query($insert) or die(mysql_error()); echo "
sent
"; } } //$image_tempname = stripslashes($image_tempname); ?>