Server : Apache System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64 User : apache ( 48) PHP Version : 8.0.28 Disable Function : NONE Directory : /var/www/html/mmishra/indem/academic-feedback/ |
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if ($con)
{
#print "connected.....";
}
# -------------------------------------------------------
mysql_select_db("itesdb", $con);
# -------------------------------------------------------
# -------------------------------------------------------
$sql="INSERT INTO users(firstname, lastname, userid, gender, areaofinterest, emailid, mob_phone)
VALUES ('$_POST[element_3_1]', '$_POST[element_3_2]', '$_POST[element_1]', '$_POST[element_6]', '$_POST[element_7]', '$_POST[element_4]', '$_POST[element_5]')";
# -------------------------------------------------------
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
#echo "1 record added";
mysql_close($con);
// some code
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Welcome to IT</title>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td width="100%" bgcolor="#CC0000"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99">Welcome to IT/ITES Web
Portal</td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99">Go to <a href="Index.html">Login</a>
Page</td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#FFFF99"> </td>
</tr>
<tr>
<td width="100%" align="center" bgcolor="#CC0000"><font color="#FFFFFF"><b>Indian
Institute of Information Technology, Allahabad</b></font></td>
</tr>
</table>
</center>
</div>
</body>
</html>