Final Submission
[insert_php]
session_start();
$pname=$_POST[‘pname’];
$_SESSION[‘pname’] = $pname;
$gname=$_POST[‘gname’];
$_SESSION[‘gname’] = $gname;
$fname=$_POST[‘fname’];
$_SESSION[‘fname’] = $fname;
$efees=$_POST[‘efees’];
$_SESSION[‘efees’] = $efees;
$dd=$_POST[‘dd’];
$_SESSION[‘dd’] = $dd;
$mm=$_POST[‘mm’];
$_SESSION[‘mm’] = $mm;
$yy=$_POST[‘yy’];
$_SESSION[‘yy’] = $yy;
$class=$_POST[‘class’];
$_SESSION[‘class’] = $class;
if($class>=0 && $class<=5)
$cat="A";
else if($class>=6 && $class<=8)
$cat="B";
else if($class>=9 && $class<=12)
$cat="C";
else if($class>=13)
$cat=”D”;
$_SESSION[‘cat’] = $cat;
$address=$_POST[‘address’];
$_SESSION[‘address’] = $address;
$mobno=$_POST[‘mobno’];
$_SESSION[‘mobno’] = $mobno;
$whatno=$_POST[‘whatno’];
$_SESSION[‘whatno’] = $whatno;
$mem=$_POST[‘alreadymem’];
$_SESSION[‘mem’] = $mem;
if(strcmp($mem,”yes”)==0)
$memid=$_POST[‘memid’];
else
$memid=”0″;
$_SESSION[‘memid’] = $memid;
$_SESSION[‘fafile’] = $mobno. $_FILES[“file”][“name”];
$faname=$_POST[‘faname’];
$_SESSION[‘faname’] = $faname;
$fatitle=$_POST[‘fatitle’];
$_SESSION[‘fatitle’] = $fatitle;
$famedium=$_POST[‘famedium’];
$_SESSION[‘famedium’] = $famedium;
$faother=$_POST[‘faother’];
$_SESSION[‘faother’] = $faother;
$_SESSION[‘safile’] = $mobno. $_FILES[“file1”][“name”];
$saname=$_POST[‘saname’];
$_SESSION[‘saname’] = $saname;
$satitle=$_POST[‘satitle’];
$_SESSION[‘satitle’] = $satitle;
$samedium=$_POST[‘samedium’];
$_SESSION[‘samedium’] = $samedium;
$saother=$_POST[‘saother’];
$_SESSION[‘saother’] = $saother;
move_uploaded_file($_FILES[“file”][“tmp_name”],”upload/” .$mobno. $_FILES[“file”][“name”]);
move_uploaded_file($_FILES[“file1”][“tmp_name”],”upload/” .$mobno. $_FILES[“file1”][“name”]);
[/insert_php]