Source Code Project
Source Code Project
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Fit India Protein Powder - The Best Supplement for Your
Fitness Journey.">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="">Home</a></li>
<li><a href="#trend">Trends</a></li>
<li><a href="login.html">Register</a></li>
<li><a href="categories.html">Categories</a></li>
<li><a href="#product">Products</a></li>
</ul>
</nav>
</header>
<!-- Home Section -->
</section>
<br>
</section>
<div id="product">
<div class="head">
<h2>Our Products</h2>
</div>
<div class="products">
<p>Rs.4999</p>
</div>
<div class="productcard">
<p>Rs.3599</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<h3>gym bags</h3>
<p>Rs.1499</p>
</div>
<div class="productcard">
<h3>gainer</h3>
<p>Rs.2499</p>
</div>
<div class="productcard">
<p>Rs.499</p>
</div>
<div class="productcard">
<h3>Natural Protein</h3>
<p>Rs.3199</p>
</div>
<div class="productcard">
</div>
<div class="productcard">
<h3>gym sando</h3>
<p>Rs.499</p>
</div>
<div class="productcard">
<h3> Protein</h3>
<p>Rs.3499</p>
</div>
<div class="productcard">
</div>
</div>
</div>
<div id="cart">
<div class="cart">
<h2>Your Cart</h2>
<table id="cart-table">
<tr>
<th>Item</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
</table>
</div>
</div>
</div>
</div>
<br>
<div id="trend">
<div class="head">
<h1>Trending products</h1>
</div>
<div class="trends">
<div class="trendfoods">
</div>
<div class="trendfoods">
</div>
<div class="trendfoods">
</div>
</div>
</div>
<!--BMI Calculator-->
<div class="container">
<h1>BMI Calculator</h1>
<div class="form-group">
</div>
<div class="form-group">
</div>
<p id="bmiCategory"></p>
</div>
</div>
max-width: 1200px;
padding: 20px;
background-color: #201f1f;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
text-align: left;
">
<div class="text">
<p>At Fit India Protein, we are committed to revolutionizing fitness and nutrition for every Indian.
Our mission is to provide high-quality, science-backed, and affordable protein supplements that fuel
your journey to a healthier, stronger, and more active lifestyle.
We understand that fitness is not just about lifting weights—it’s about sustainable health,
balanced nutrition, and peak performance. That’s why we source the finest ingredients and use
cutting-edge formulation techniques to ensure our products meet the highest industry standards.
Whether you're an athlete, gym-goer, or simply someone looking to boost your daily protein
intake, Fit India Protein is here to support your goals. With a range of whey, plant-based, and
specialized protein blends, we cater to diverse dietary needs and preferences.
<br>
<br><br>
</div>
<br>
<br>
<div class="text">
<br>
</div>
</div>
</div>
</div>
<div class="footer">
<li><a href="feedback.html">feedback</a></li>
<li><a href="payment.html">Payments</a></li>
<li><a href="" "> </a></li>
</div>
<script src="script.js"></script>
</body>
</html>
Style.css
*{
margin: 0;
padding: 0;
box-sizing: border-box;
body {
line-height: 1.6;
color: #f9f5f5;
background-color: #403f3f;
header {
background-color: #060606;
color: #f9f3f3;
padding: 50px;
}
header nav ul {
list-style-type: none;
display: flex;
justify-content: center;
header nav ul li {
margin: 0 15px;
header nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
ul{
display: flex;
ul li{
list-style: none;
li a{
text-decoration: none;
color:white;
font-size: 20px;
margin-inline: 22px;
.logo{
color: white;
font-size: 21px;
.hero {
text-align: center;
background-color: #2c2a2a;
.hero h1 {
font-size: 3em;
.hero img{
width: 1520px;
.hero .cta-button {
background-color: #5cb85c;
color: white;
text-decoration: none;
border-radius: 5px;
.products {
display: flex;
justify-content: center;
flex-wrap: wrap;
.productcard{
width: 300px;
padding:11px;
margin-inline: 80px;
margin-top: 24px;
color: black;
cursor: pointer;
.productcard img{
width: 100%;
.productcard p{
padding: 7px;
.productcard button{
width: 150px;
background-color: orangered;
color: white;
padding: 5px;
border: none;
font-size: 18px;
/* Cart Section */
#cart {
padding: 30px;
background-color: #353534;
#cart h2 {
text-align: center;
font-size: 28px;
margin-bottom: 20px;
#cart-list {
list-style-type: none;
#cart-list li {
font-size: 20px;
margin: 10px 0;
#total-price {
font-weight: bold;
font-size: 24px;
color: #ff5733;
#checkout-btn {
display: block;
width: 100%;
padding: 15px;
background-color: #ff5733;
font-size: 20px;
border: none;
cursor: pointer;
margin-top: 20px;
border-radius: 5px;
#checkout-btn:hover {
background-color: #c44324;
}
/* Footer */
footer {
text-align: center;
padding: 20px;
background-color: #ff5733;
font-size: 14px;
.trends{
width:900px;
height:300px;
position:relative;
margin:auto;
overflow:hidden;
.trendfoods{
display:flex;
justify-content: center;
width: 100%;
height:100%;
position:absolute;
margin:auto;
overflow:hidden;
color: #ccc;
.trendfoods img{
width: 240px;
margin-inline: 15px;
section {
#about img {
max-width: 100%;
height: auto;
margin-top: 20px;
.benefits ul {
list-style-type: none;
padding-left: 20px;
.benefits li {
margin-bottom: 10px;
}
.container {
max-width: 400px;
padding: 20px;
background-color: #8e8a8a;
border-radius: 8px;
text-align: center;
h1 {
color: #f1eded;
text-align: center;
.form-group {
margin-bottom: 20px;
text-align: left;
label {
font-size: 14px;
color: #555;
input {
width: 100%;
padding: 10px;
font-size: 16px;
margin-top: 8px;
border-radius: 4px;
button {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
button:hover {
background-color: #45a049;
.result {
margin-top: 20px;
#bmiValue {
font-weight: bold;
font-size: 24px;
#bmiCategory {
font-size: 16px;
color: #242323;
.form-container {
margin-bottom: 30px;
background-color: #656262;
padding: 20px;
border-radius: 8px;
.form-container h3 {
margin-bottom: 10px;
input, textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
}
button {
background-color: #5cb85c;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
.footer {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
text-align: center;
background-color: #0d0d0d;
color: #f8f5f5;
padding: 50px;
margin-top: 66px;
Categories.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Fit India Protein Powder - The Best Supplement for Your
Fitness Journey.">
</head>
<body>
<div id="product">
<div class="head">
<h1>Categories</h1>
</div>
<div class="products">
<br>
<br>
<br>
<div id="product">
<div class="head">
<h1>Proteins</h1>
</div>
<div class="products">
<div class="productcard">
<img src="protein2.png" alt="Protein Powder">
<p>Rs.3599</p>
</div>
<div class="productcard">
<p>Rs.3599</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
</div>
</div>
<div id="product">
<div class="head">
<h1>Gainers</h1>
</div>
<div class="products">
<div class="productcard">
<p>Rs.4999</p>
</div>
<div class="productcard">
<p>Rs.3599</p>
<button class="add-to-cart" data-product-id="2" data-product-name="Ultimate Whey
Protein" data-product-price="35999">Add to Cart</button>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
</div>
</div>
<div id="product">
<div class="head">
<h1>Workout Essentials</h1>
</div>
<div class="products">
<div class="productcard">
<p>Rs.4999</p>
</div>
<div class="productcard">
<p>Rs.3599</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<p>Rs.3499</p>
</div>
</div>
</div>
<script src="script.js"></script>
<div id="product">
<div class="head">
<h1>Supplyments</h1>
</div>
<div class="products">
<div class="productcard">
<p>Rs.4999</p>
<button class="add-to-cart" data-product-id="1" data-product-name="Dynamic Protein
Powder" data-product-price="4999">Add to Cart</button>
</div>
<div class="productcard">
<p>Rs.3599</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
</div>
</div>
<div id="product">
<div class="head">
<h1>protein foods</h1>
</div>
<div class="products">
<div class="productcard">
<p>Rs.4999</p>
</div>
<div class="productcard">
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
</div>
</div>
<div id="product">
<div class="head">
<h1>Natural herbs</h1>
</div>
<div class="products">
<div class="productcard">
<p>Rs.4999</p>
</div>
<div class="productcard">
<p>Rs.3599</p>
</div>
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<div class="productcard">
<p>Rs.3499</p>
</div>
<!-- Product 4 -->
<div class="productcard">
<p>Rs.3499</p>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
Categories.css
.products {
display: flex;
justify-content: center;
flex-wrap: wrap;
.productcard{
width: 300px;
padding:11px;
margin-inline: 80px;
margin-top: 24px;
color: black;
cursor: pointer;
.productcard img{
width: 100%;
.productcard p{
padding: 7px;
.productcard button{
width: 150px;
background-color: orangered;
color: white;
padding: 5px;
border: none;
font-size: 18px;
.proteins {
display: flex;
justify-content: center;
flex-wrap: wrap;
.proteincard{
width: 300px;
padding:11px;
margin-inline: 80px;
margin-top: 24px;
color: black;
cursor: pointer;
.proteincard img{
width: 100%;
.proteincard p{
padding: 7px;
.proteincard button{
width: 150px;
background-color: orangered;
color: white;
padding: 5px;
border: none;
font-size: 18px;
Script.js
document.querySelectorAll('form').forEach(form => {
form.addEventListener('submit', function(event) {
if (!form.action.includes('.php')) {
alert(message);
});
});
if (existingItem) {
existingItem.quantity += 1;
} else {
const newItem = {
name: item,
price: price,
quantity: 1,
total: price
};
cart.push(newItem);
renderCart();
function renderCart() {
rows[i].remove();
let totalPrice = 0;
document.getElementById('view-cart').addEventListener('click', () => {
document.getElementById('cart').style.display = 'block';
});
// Close cart
document.getElementById('close-cart').addEventListener('click', () => {
document.getElementById('cart').style.display = 'none';
});
// Clear cart
document.getElementById('clear-cart-button').addEventListener('click', () => {
cart = [];
updateCart();
});
cart.forEach(item => {
row.innerHTML = `
<td>${item.name}</td>
<td>$${item.price}</td>
<td>${item.quantity}</td>
<td>$${item.total}</td>
`;
cartTable.appendChild(row);
totalPrice += item.total;
});
totalPriceElement.innerHTML = `Total: $${totalPrice}`;
function checkout() {
if (cart.length === 0) {
return;
alert('CHAL NIKAL.');
cart = [];
renderCart();
function calculateBMI() {
// Validate input
return;
// Calculate BMI
document.getElementById('bmiValue').textContent = bmi;
document.getElementById('result').style.display = 'block';
category = "Underweight";
category = "Overweight";
} else {
category = "Obesity";
productcard.forEach((curcard)=>{
curcard.addEventListener("click", function(){
console.log(curcard);
div.classList.add("cardDetails");
div.innerHTML=`
<i id="icon" class="fa-solid fa-xmark"></i>
<h2>food details</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quibusdam consequuntur sequi
quis expedita tempore ex veniam culpa voluptate vel at. Veniam, fugit!</p>
document.querySelector("body").appendChild(div)
document.querySelector("#icon").addEventListener("click",function(){
div.remove();
})
})
})
let count = 0;
console.log(trendfoods);
});
trendfoods.forEach((curImg) => {
});
};
setInterval(() => {
count++;
if (count == trendfoods.length) {
count = 0;
myfun();
}, 4000);
// food details
productcard.forEach((curcard)=>{
curcard.addEventListener("click", function(){
console.log(curcard);
div.classList.add("cardDetails");
div.innerHTML=`
<h2>food details</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quibusdam consequuntur sequi
quis expedita tempore ex veniam culpa voluptate vel at. Veniam, fugit!</p>
document.querySelector("body").appendChild(div)
document.querySelector("#icon").addEventListener("click",function(){
div.remove();
})
})
})
proteincard.forEach((curcard)=>{
curcard.addEventListener("click", function(){
console.log(curcard);
div.classList.add("cardDetails");
div.innerHTML=`
<h2>food details</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quibusdam consequuntur sequi
quis expedita tempore ex veniam culpa voluptate vel at. Veniam, fugit!</p>
document.querySelector("body").appendChild(div)
document.querySelector("#icon").addEventListener("click",function(){
div.remove();
})
})
})
Gainercard.forEach((curcard)=>{
curcard.addEventListener("click", function(){
console.log(curcard);
div.classList.add("cardDetails");
div.innerHTML=`
<h2>food details</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quibusdam consequuntur sequi
quis expedita tempore ex veniam culpa voluptate vel at. Veniam, fugit!</p>
document.querySelector("body").appendChild(div)
document.querySelector("#icon").addEventListener("click",function(){
div.remove();
})
})
})
Forms
Signup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My projects</title>
</head>
<body>
<form action="action_page.php">
<div class="container">
<h1>signup</h1>
<hr>
<label for="email"><b>Email</b></label>
<label for="Name"><b>name</b></label>
<label for="psw"><b>Password</b></label>
<hr>
</div>
</form>
</body>
Signup.php
<?php
// Check connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $conn->real_escape_string($_POST['name']);
$email = $conn->real_escape_string($_POST['email']);
$password = $conn->real_escape_string($_POST['password']);
// Optionally, you can redirect to another page, like a login page or dashboard
// header("Location: login.php");
} else {
$conn->close();
} else {
?>
Login.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
rel="stylesheet">
<script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-
B309-BB3FDD723AC1/main.js?
attr=ZjuSm4bNHu52cCsw4aQvxkWVuCt4wUDBeyQt92flXp_BTD972BSkf5nMXIYHLOaABweuR8LIro8S
9IbRhGIaeVVeD4QzmqxjeXkN1UAF1UU" charset="UTF-8"></script>
</head>
<body>
<h1>Create Account</h1>
<div class="social-container">
</div>
</form>
</div>
<h1>Login</h1>
<div class="social-container">
<a href="#" class="social"><i class="fab fa-facebook-f"></i></a>
</div>
</form>
</div>
<div class="overlay-container">
<div class="overlay">
<h1>Welcome Back!</h1>
<p>To keep connected with us please login with your personal info</p>
</div>
<h1>Hello, Friend!</h1>
</div>
</div>
</div>
</div>
<script type="module" src="Login.js"></script>
</body>
</html>
Login signup.css
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');
*{
box-sizing: border-box;
::-webkit-scrollbar {
display: none;
body {
/* background: #f6f5f7; */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 90vh;
background-size: cover;
h1 {
font-weight: bold;
margin: 0;
h2 {
text-align: center;
p{
font-size: 14px;
font-weight: 100;
line-height: 20px;
letter-spacing: 0.5px;
span {
font-size: 12px;
a{
color: #333;
font-size: 14px;
text-decoration: none;
margin: 15px 0;
button {
border-radius: 20px;
background-color: #FF4B2B;
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
letter-spacing: 1px;
text-transform: uppercase;
button:active {
transform: scale(0.95);
button:focus {
outline: none;
button.ghost {
background-color: transparent;
border-color: #FFFFFF;
form {
background-color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0 50px;
height: 100%;
text-align: center;
input {
background-color: #eee;
border: none;
margin: 8px 0;
width: 100%;
.container {
background-color: #fff;
border-radius: 10px;
position: relative;
overflow: hidden;
width: 768px;
max-width: 100%;
min-height: 480px;
.form-container {
position: absolute;
top: 0;
height: 100%;
.sign-in-container {
left: 0;
width: 50%;
z-index: 2;
.container.right-panel-active .sign-in-container {
transform: translateX(100%);
.sign-up-container {
left: 0;
width: 50%;
opacity: 0;
z-index: 1;
.container.right-panel-active .sign-up-container {
transform: translateX(100%);
opacity: 1;
z-index: 5;
@keyframes show {
0%,
49.99% {
opacity: 0;
z-index: 1;
50%,
100% {
opacity: 1;
z-index: 5;
}
.overlay-container {
position: absolute;
top: 0;
left: 50%;
width: 50%;
height: 100%;
overflow: hidden;
z-index: 100;
.container.right-panel-active .overlay-container {
transform: translateX(-100%);
.overlay {
background: #FF416C;
background-repeat: no-repeat;
background-size: cover;
background-position: 0 0;
color: #FFFFFF;
position: relative;
left: -100%;
height: 100%;
width: 200%;
transform: translateX(0);
.container.right-panel-active .overlay {
transform: translateX(50%);
.overlay-panel {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 0 40px;
text-align: center;
top: 0;
height: 100%;
width: 50%;
transform: translateX(0);
.overlay-left {
transform: translateX(-20%);
}
.container.right-panel-active .overlay-left {
transform: translateX(0);
.overlay-right {
right: 0;
transform: translateX(0);
.container.right-panel-active .overlay-right {
transform: translateX(20%);
.social-container {
margin: 20px 0;
.social-container a {
border-radius: 50%;
display: inline-flex;
justify-content: center;
align-items: center;
margin: 0 5px;
height: 40px;
width: 40px;
}
footer {
background-color: #222;
color: #fff;
font-size: 14px;
bottom: 0;
position: fixed;
left: 0;
right: 0;
text-align: center;
z-index: 999;
footer p {
margin: 10px 0;
footer i {
color: red;
footer a {
color: #3c97bf;
text-decoration: none;
}
Login.php
<?php
$servername = "localhost";
$username = "root";
// Create connection
// Check connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$email = $_POST['email'];
$password = $_POST['password'];
$email = $conn->real_escape_string($email);
$password = $conn->real_escape_string($password);
// Prepare the SQL query to fetch user details by email
$result = $conn->query($sql);
if ($result->num_rows > 0) {
$user = $result->fetch_assoc();
// Verify the provided password against the hashed password in the database
if (password_verify($password, $user['password'])) {
// You can also start a session here and redirect the user to a dashboard or home page.
} else {
// Invalid password
} else {
$conn->close();
} else {
?>
Calorieneed.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
text-align: center;
background-color: #f4f4f4;
margin: 0;
padding: 0;
.container {
max-width: 400px;
background: white;
padding: 20px;
border-radius: 8px;
h2 {
color: #333;
label {
font-weight: bold;
display: block;
margin-top: 10px;
input, select {
width: 100%;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
button {
background: #28a745;
color: white;
padding: 10px;
border: none;
width: 100%;
margin-top: 15px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
button:hover {
background: #218838;
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
color: #333;
</style>
</head>
<body>
<div class="container">
<label for="age">Age:</label>
<label for="gender">Gender:</label>
<select id="gender">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
<select id="activity">
</select>
<button onclick="calculateCalories()">Calculate</button>
<div id="result"></div>
</div>
<script>
function calculateCalories() {
return;
let BMR;
} else {
</script>
</body>
</html>
Calorieburn.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
text-align: center;
background-color: #f4f4f4;
margin: 0;
padding: 0;
.container {
max-width: 400px;
background: white;
padding: 20px;
border-radius: 8px;
h2 {
color: #333;
}
label {
font-weight: bold;
display: block;
margin-top: 10px;
input, select {
width: 100%;
padding: 10px;
margin: 5px 0;
border-radius: 5px;
button {
background: #007bff;
color: white;
padding: 10px;
border: none;
width: 100%;
margin-top: 15px;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background: #0056b3;
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
color: #333;
</style>
</head>
<body>
<div class="container">
<select id="activity">
</select>
<button onclick="calculateCaloriesBurned()">Calculate</button>
<div id="result"></div>
</div>
<script>
function calculateCaloriesBurned() {
if (!weight || !duration) {
return;
</script>
</body>
</html>
Contact.html
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div class="form-container">
<h2>Contact Us</h2>
<label for="name">Name:</label>
<label for="email">Email:</label>
<label for="message">Message:</label>
</form>
</div>
</div>
</body>
</html>
Contact.css
body {
background-color: #1f252e;
height: 100vh;
color: #faf8f8;
header {
background-color: #1f252e;
height: 130px;
position: sticky;
top: 0;
z-index: 1000;
.container {
display: flex;
width: 100%;
}
.form-container {
width: 60%;
padding: 20px;
margin-right: 50px;
h2 {
color: black;
label {
display: block;
input, textarea {
width: 95%;
padding: 10px;
margin-bottom: 10px;
border-radius: 4px;
color: black;
}
button {
background-color: #7848d6;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
button:hover {
background-color: #4f03ab;
text-decoration: underline;
Contact.php
<?php
// Database credentials
// Create connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$stmt = $conn->prepare("INSERT INTO contactus (name, email, message) VALUES (?, ?, ?)");
if ($stmt->execute()) {
} else {
$stmt->close();
}
// Close the connection
$conn->close();
?>
Feedback.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>feedback</title>
</head>
<body>
<br>
<div class="container">
<div class="feedback-form">
</form>
</div>
</div>
</div>
<script>
e.preventDefault();
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function () {
if (xhr.readyState === 4 && xhr.status === 200) {
document.getElementById('successMessage').style.display = 'block';
};
} else {
});
</script>
</body>
</html>
Feedback.css
body {
background-color: #1f252e;
height: 100vh;
color: #faf8f8;
header {
background-color: #1f252e;
height: 130px;
position: sticky;
top: 0;
z-index: 1000;
.container {
width: 45%;
background-color: white;
padding: 20px;
border-radius: 8px;
.feedback-form h1 {
margin-bottom: 18px;
background-color: ;
color: #333;
padding: 10px;
text-align: center;
.feedback-form label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #555;
.feedback-form input,
.feedback-form textarea {
width: 95%;
padding: 15px;
margin-bottom: 15px;
border-radius: 5px;
.feedback-form button {
background-color: #6f56ee;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
text-decoration: none;
.feedback-form button:hover {
background-color: #742ded;
color: white;
text-decoration: underline;
.message {
text-align: center;
font-weight: bold;
margin-top: 20px;
}
Feedback.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Database credentials
// Create connection
// Check connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = $conn->real_escape_string($_POST['name']);
$email = $conn->real_escape_string($_POST['email']);
$feedback = $conn->real_escape_string($_POST['feedback']);
// Prepare and bind
$stmt = $conn->prepare("INSERT INTO feedback (name, email, feedback) VALUES (?, ?, ?)");
if (!$stmt) {
if ($stmt->execute()) {
} else {
$stmt->close();
$conn->close();
} else {
?>
Subscriber.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Forms</title>
</head>
<body>
<div class="form-container">
</form>
</div>
</body>
</html>
Subscriber.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$servername = "localhost";
// Create connection
// Check connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$check_stmt->bind_param("s", $email);
$check_stmt->execute();
$check_stmt->store_result();
if ($check_stmt->num_rows > 0) {
}
$check_stmt->close();
$stmt->bind_param("s", $email);
if ($stmt->execute()) {
} else {
$stmt->close();
$conn->close();
?>
Payment.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Payment Form</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 50px;
color: black;
.container {
display: flex;
justify-content: center;
align-items: center;
.form-container {
display: flex;
background-color: white;
padding: 20px;
border-radius: 10px;
width: 80%;
.success-message {
display: none;
color: green;
font-size: 18px;
margin-top: 10px;
}
input, button {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
button {
color: white;
border: none;
cursor: pointer;
font-weight: bold;
button:hover {
#qr-code {
margin-top: 20px;
h3 {
</style>
</head>
<body>
<h2>Payment Form</h2>
<div class="container">
<div class="form-container">
<h3>UPI Payment</h3>
<label for="name">Name:</label>
<div id="qr-code">
</div>
</form>
</div>
</body>
</html>
Payment.php
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "fitindia_db";
// Create connection
// Check connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Validate input
$name = trim($_POST['name']);
$upi_id = trim($_POST['upi_id']);
if (empty($name) || empty($upi_id)) {
if ($stmt->execute()) {
} else {
$stmt->close();
$conn->close();
?>
Productenquiry.html
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Forms</title>
</head>
<body>
<div class="form-container">
<h3>Product Inquiry Form</h3>
<div class="form-group">
</div>
<div class="form-group">
<label for="email">Email</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</div>
<!-- <script src="script.js"></script> -->
</body>
</html>
Productenquiry.php
<?php
// Create connection
// Check connection
if ($conn->connect_error) {
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = trim($_POST['name']);
$email = trim($_POST['email']);
$product = trim($_POST['product']);
$message = trim($_POST['message']);
if ($stmt->execute()) {
} else {
$stmt->close();
$conn->close();
?>
Samplerequest.html
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="form-container">
</form>
</div>
</body>
</html>
Samplerequest.php
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$name = htmlspecialchars($_POST['name']);
$email = htmlspecialchars($_POST['email']);
$phone = htmlspecialchars($_POST['phone']);
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "fitindia_db";
if ($conn->connect_error) {
// Prepare the SQL query to insert the form data into the database
$stmt = $conn->prepare("INSERT INTO sample_requests (name, email, phone) VALUES (?, ?, ?)");
if ($stmt->execute()) {
} else {
$conn->close();
?>
Samplereport