Академический Документы
Профессиональный Документы
Культура Документы
It is website on online enquiry system which provides information about any product and its
parameter. We can enquire about the user and his product details and parameter stock and reports .
It can be used according to the any system which is secure and safe. Here we use wamp server to get
connected and phpmyadmin for database connectivity.
Coding :
1.php :
<!DOCTYPE html>
<head>
<script src="/scripts/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
<style class="text/css">
background-color:black;
color:white;
}
h2{
font-family:Courier;
font-weight:bold;
font-size:35px;
p{
font-family:Courier;
font-weight:bold;
font-size:15px;
color:silver;
nav{
font-family:verdana;
</style>
</head>
<body>
</div>
<div>
My
</a>
</ul>
</li>
Master
</a>
<li><a href =
"parameter_1.php">Parameter</a></li>
</ul>
</li>
Admin
</a>
</ul>
</li>
Help
</a>
</ul>
</li>
</ul>
</div>
</nav>
<div class="col-md-12">
<?php
include_once "content_1.php";
?>
</div>
<hr/>
<div class="col-md-12">
<?php
include_once "footer_1.php";
?>
</div>
</div><!--end of footer row-->
</body>
</html>
Output :
Firstpage.php :
<!DOCTYPE html>
<html>
<head>
<style>
body
background-image: url("web1.jpg");
</style>
</head>
<body>
<fieldset>
<center>
<p class="clearfix">
</p>
<p class="clearfix">
</center>
</fieldset>
</form>
</body>
</html>
<?php
if (isset($_POST['submit_l']))
header('Location:index.php');
if (isset($_POST['submit_s']))
header('Location:signup.php');
?>
Output :
Login.php :
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<fieldset>
<legend>
<h1 style="text-align:center;">LOGIN</h1>
</font>
</legend>
<center>
</center>
</fieldset>
</body>
</html>
<?php
if (isset($_POST['submit']))
header('Location:login_1.php');
?>
Output :
Signup.html :
<!DOCTYPE html>
<html>
<head>
<style>
body
background-image: url("web1.jpg");
</style>
</head>
<body>
<p class="clearfix">
<label for="login">Firstname</label>
</p>
<label for="login">Username</label>
</p>
<p class="clearfix">
<label for="password">Password</label>
</p>
<p class="clearfix">
</p>
<p class="clearfix">
<label for="password">Email</label>
</p>
<p class="clearfix">
</p>
</form>
</body>
</html>
Output :
Enquirey.php:
<!DOCTYPE html>
<head>
<title>Try v1.2 Bootstrap Online</title>
<script src="/scripts/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
<![endif]-->
<style>
body
background-image: url("web3.jpg");
</style>
</head>
<body>
<div class="container"><!--start-->
<div class="col-md-12">
</div>
</div><!--end of row-->
<?php
include_once "header_1.php";
?>
</div>
<?php
include_once "menu_1.php";
?>
</div>
<div class="col-md-12">
<?php
include_once "content_1.php";
?>
</div>
<hr/>
<div class="col-md-12">
<?php
include_once "footer_1.php";
?>
</div>
</div><!----end of container>
<!-- Include all compiled plugins (below), or include individual files as needed -->
</body>
</html>
Output :
Followup_1.php :
<!DOCTYPE html>
<head>
<script src="/scripts/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
/respond/1.4.2/respond.min.js"></script>
<style>
body
background-image: url("web3.jpg");
</style>
</head>
<body>
<div class="container"><!--start-->
<div class="col-md-12">
</div>
</div><!--end of row-->
<?php
include_once "header_1.php";
?>
</div>
<?php
include_once "menu_1.php";
?>
</div>
<div class="col-md-12">
<?php
include_once "follow.php";
?>
</div>
<hr/>
<?php
include_once "footer_1.php";
?>
</div>
</div><!----end of container>
</body>
</html>
Output :
Closure.php :
<!DOCTYPE html>
<head>
<title>Try v1.2 Bootstrap Online</title>
<script src="/scripts/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container"><!--start-->
<div class="col-md-12">
</div>
</div><!--end of row-->
<?php
include_once "header_1.php";
?>
</div>
<?php
include_once "menu_1.php";
?>
</div>
<div class="col-md-12">
<?php
include_once "report_1.php";
?>
</div>
<hr/>
</div><!--end of search-->
<div class="col-md-12">
<?php
include_once "footer_1.php";
?>
</div>
</div><!----end of container>
</body>
</html>
Output :
Parameter_1.php :
<!DOCTYPE html>
<script src="/scripts/jquery.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container"><!--start-->
<div class="col-md-12">
</div>
</div><!--end of row-->
<?php
include_once "header_1.php";
?>
</div>
<?php
include_once "menu_1.php";
?>
</div>
<div class="col-md-12">
<?php
include_once "parameter.php";
?>
</div>
<hr/>
<div class="col-md-12">
<?php
include_once "footer_1.php";
?>
</div>
</div><!----end of container>
</body>
</html>
Output :
PHP my admin :
Created database called project.IN project named database created table for enquirey ,login,
parameter of product, product details, signup
<?php
/*
*/
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "project";
// Create connection
// Check connection
if ($conn->connect_error) {
// insert
if (isset($_POST['Add']))
$enquiry = $_POST['en'];
$date = $_POST['date'];
$contact = $_POST['contact'];
$address = $_POST['address'];
$telephone = $_POST['tele'];
$email = $_POST['email'];
$source = $_POST['source'];
$remarks = $_POST['remarks'];
VALUES
('$enquiry','$date','$contact','$address','$telephone','$email','$source','$remarks')";
header('Location:thankyou.php');
} else {
$conn->close();
?>
<?php
session_start();
?>
<?php
$encrypted_text = "";
if($offset < 0) {
$offset += 26;
$i = 0;
$c = strtoupper($str{$i});
} else {
} else {
$i++;
return $encrypted_text;
$decrypted_text = "";
if($offset < 0) {
$offset += 26;
$i = 0;
$c = strtoupper($str{$i});
if(($c >= "A") && ($c <= 'Z')) {
} else {
} else {
$i++;
return $decrypted_text;
//sample text
$text = $_POST['password'];
$offset = 5;
?>
<!DOCTYPE html>
<head>
<?php
if($_SERVER["REQUEST_METHOD"]=="POST")
$un =$_POST["username"];
$ps= $enc;
$ps_hashed = hash('sha512',$ps_salted);
include "config.php";
$table=$conn->query($sql);
if($conn->affected_rows>0)
$_SESSION["islogged"]=true;
$_SESSION["username"]=$un;
header('Location:newpro.php');
else{
?>
<?php
/*
*/
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "project";
// Create connection
// Check connection
if ($conn->connect_error) {
// insert
if (isset($_POST['Add']))
$type = $_POST['type'];
$name = $_POST['name'];
VALUES ('$type','$name')";
header('Location:thankyou.php');
} else {
$conn->close();
?>
<?php
/*
*/
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "project";
// Create connection
// Check connection
if ($conn->connect_error) {
// insert
if (isset($_POST['Add']))
$name = $_POST['name'];
$rate = $_POST['rate'];
$amount = $_POST['amt'];
$qty = $_POST['qty'];
VALUES ('$name','$rate','$qty','$amount')";
header('Location:thankyou.php');
} else {
$conn->close();
?>
<?php
$encrypted_text = "";
if($offset < 0) {
$offset += 26;
$i = 0;
while($i < strlen($str)) {
$c = strtoupper($str{$i});
} else {
} else {
$i++;
return $encrypted_text;
$decrypted_text = "";
if($offset < 0) {
$offset += 26;
$i = 0;
$c = strtoupper($str{$i});
} else {
} else {
$i++;
return $decrypted_text;
//sample text
$text = $_POST['password'];
$offset = 5;
?>
<?php
/*
*/
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "project";
// Create connection
// Check connection
if ($conn->connect_error) {
// insert
if (isset($_POST['submit'])) {
$fname = $_POST['firstname'];
$user = $_POST['username'];
$pass = $_POST['password'];
$cpass = $_POST['confrim'];
$email = $_POST['email'];
$pass_e = $enc;
if (!$fname == '' && !$user == '' && !$pass == '' && !$email == '') {
if ($cpass == $pass) {
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
VALUES ('$fname','$user','$hashed','$email')";
header('Location:index.php');
} else {
} else {
} else {
echo "entered password must contain only letters and numbers and should have min length
of 4";
} else {
} else {
echo "entered user name should contain only letters,numbers and should have a min length of
5";
} else {
$conn->close();
?>