b0y-101 Mini Shell


Current Path : E:/www/shee/sheeregis/
File Upload :
Current File : E:/www/shee/sheeregis/editregis_up.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<? 
include("condbm.php");

$id_card =$_POST['id_card']; $name_std =$_POST['name_std']; $lastname_std =$_POST['lastname_std']; 
$tel_std =$_POST['tel_std']; $email_std =$_POST['email_std']; $branch_std =$_POST['branch_std']; 
$great_std =$_POST['great_std']; $jobtitle =$_POST['jobtitle']; $location_office =$_POST['location_office']; 
$thesis =$_POST['thesis']; $degree =$_POST['degree'];

 if( (empty($id_card))||(empty($name_std))||(empty($lastname_std))||(empty($tel_std)) ||(empty($email_std))) {	 ?>
     
     <form  name="frmMain" action="indexmain.php?f=sheeregis" method="POST"  >
    </form>
	<script>document.getElementsByTagName("form")[0].submit();</script>   
     
 <?  }  
 
 	    $objQuerys1 = mysql_query("SELECT * FROM sheeregis WHERE id_card LIKE '$id_card'") 
		              or die ("Error Query [".$strSQL."]");
		$objResults1 = mysql_fetch_array($objQuerys1);
		
		$new_nametc = $objResults1['transcript_std'];
		$new_nameslip = $objResults1['slip_std'];
 
        
		
		$STRSQL = "UPDATE sheeregis SET 
		degree ='$degree' , name_std ='$name_std' , lastname_std ='$lastname_std', tel_std = '$tel_std' ,
		email_std ='$email_std' , branch_std ='$branch_std', great_std ='$great_std' , jobtitle ='$jobtitle' ,
		location_office ='$location_office' , thesis ='$thesis' 
		WHERE  	id_card = '$id_card'";
	  
	   $ObjQuery = mysql_query($STRSQL); 
	  if($ObjQuery){

		    if ($_FILES['picslip']['tmp_name']!=''){
				move_uploaded_file($_FILES['picslip']['tmp_name'],'slip/'.$new_nameslip);	}
				
			if ($_FILES['pictc']['tmp_name']!=''){
				  move_uploaded_file($_FILES['pictc']['tmp_name'],'transcript/'.$new_nametc); } ?>
				  
		<form  name="frmMain" action="indexmain.php?f=reportstdregis" method="POST"  >
        	<input type="hidden" name="id_card" value="<?php echo $id_card ;?>" />
        	<input type="hidden" name="repxx" value="ckrepxx" />
    	</form>  
		 <script>document.getElementsByTagName("form")[0].submit();</script>    
	   <?  }  else {  die ("Error in query: $SQLADDS1 "); }   ?>
 
        
</body>
</html>

Copyright © 2019 by b0y-101