Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/profile1/clubs/2005/
Upload File :
Current File : /var/www/html/mmishra/profile1/clubs/2005/lastpage.php

<?php
session_start();
?>
<?php 
if((isset($_SESSION['flag'])&&($_SESSION['flag']==1)))
{?>
	<html>
		<head>
		<title>Untitled Document</title>

		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<script language="JavaScript" type="text/JavaScript">
		<!--
		function MM_reloadPage(init) {  //reloads the window if Nav4 resized
			  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
				      document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
			    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
		}
	MM_reloadPage(true);
	</script>
		<style type="text/css">
		<!--
		body {
				background-color: #CDAE95;
		}
</style></head><body>
	<?php
   include "pass.php"; 
	$name=$_POST['name'];
        $sem=$_POST['sem'];
	$roll=$_POST['roll'];
	$club=$_POST['club'];
	$you=$_POST['you'];
	$user=$_SESSION['a'];
	if ($name && $sem && $roll ) {
	mysql_pconnect("$host_name","$user_name","$user_pw")  or die("Unable to connect to SQL server");
	    mysql_select_db("$db_name") or die("Unable to select database");
	    $query = "INSERT INTO table1 (name,sem,roll,club,you,user) values('$name','$sem','$roll','$club','$you','$user')";
	     mysql_query($query) or die("Insert Failed!");
            echo "Value Added to database Successfully" ; 
	}
	else 
	{
		echo "<h3 align='center'>Please specify all the fields</h3>\n";	
	echo " <h3 align='center'><a href=index.php>Click here to go back </a></h3> ";
	}

	?>
      </body>
      </html>
     <?
     }
     ?>