0% found this document useful (0 votes)
14 views

Coding and Output

Uploaded by

aaad19ec
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Coding and Output

Uploaded by

aaad19ec
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<metahttp-equiv="X-UA-Compatible" content="IE=edge">
<mela name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href-"style.css">
</head>
<body>
<div class="contact-form">
<h1>DATABASE FORM<lh1>
</div>
<div class="contact-us">
<form action="save.php" method="post">
class="form-control" placeholder="Enter First Name"> <brs
<input type="text"
<input name="fname class="form-control"
type="text" name="Iname" placeholder="Enter last Name"> <bs
<input type="email" name="email" class="form-control" placeholder="Enter Email"> <br>
Number"> <brs
<input type="text" name="mobile" class="form-control" placeholder="Enter Mobile
<input type="submit" class="form-control submit" value"submit" >
<lform>
<ldiv>
</body>
<lhtmls
CSS

padding: Opx ;
margin: Opx;
font-family:sans-serif ;
body(
text-align: center;
.contact-form{
margin-top: 100px;
color: #ffS722:
text-transform: uppercase;
transition: all 4s ease-in-out;

.contact-form h1
font-size: 32px;

form{
margin-top: 50px;
transition: all 4s ease-in-out;

.form-control{
width: 400px;
background: transparent;
border: none;
outline: none;
border-bottom: 1px solid gray:
color: #fff;
font-size: 18px;
margin-bottom: 18px;

input(
height: 45px;

form .submit{
background: #ff5722;
border: transparent;
color: #fff:
font-size: 20px;
font-weight: bold;
letter-spacing: 2px;
height: 50px;
margin-top: 20px;
form .submit:hover
background: #f44336;
cursor: pointer;
php

<?php
Sfistname = $_POST["fname"):
Slastname = $_POST["Iname"]:
Semail =$_POST[email"]:
Smobile =$_POSTI'mobile"]:
Sconn = mysqli connect("localhost", "root", "", "database_form") or die("connection failed");
Ssql ="INSERT INTOdatabse_table(First_name, Last _name, Email, Mobile) VALUES((Sfistname).'(Slastname): (St
Sresult = mysqli _query(Sconn,$sq) or die("Query Failed!"):
header("location: http://localhostUdatabase%20form/contactfrom.php");
mysqli_close (Sconn):
php

<?php
$fistname = $_POSTI"fname"];
$lastname = $ POST"Iname"l:
$email =$_POSTI"email"]:
Smobile=$_POST["mobile"]:
$conn = mysqli_connect("localhost" "root", ", "database form") or die("connection failed");
Ssql"INSERT
Sresult INTO databse_table(first_name,
= mysqli_query($conn, $sql) or die("QueryLast_name,
Failed!"); Email, Mobile) VALUES (sfistname}.(slastname).(S
header("location: http://localhostUdatabase%20form/contactfrom.php");
mysqi_close(Sconn):
S Fay to ue Online PDE Dtor
loralhost/127A01i databas
tG obohostdatahs

Googe egam Dunn Hotstar


Index of /database
LAt modiled Size Desciptiong

saoguaho 2024-05-13 0S 2! L0R


0408-I30s 0 $|3
2024-08-13 08 20 s93

Apae 24 S8 (WinÓA) GpenssL3 1.3 PHP:3I2 Sene a ocalhost Po 80


to Ue Onine Pl php-GogeSch Dodarert u localhost/ 121001/ alabesc

ab/ontadk

DATABASE FORM

Enter First Name

Enler last Name

Enler Email

Enter Mobile Number

ubmit

ENG 1:39
IN
phpMyAdnin
Suse

VSs-9(0 b Quy bat aa005sons)


ELET ROR bse tabie

Fiher os S h as

A AR

ASE

Ai Lo29630129%
7318 4121

Ftu s

taybti

You might also like