Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DOCTYPE html>
<html>
<head>
<title>PHP insertion</title>
<link href="css/insert.css" rel="stylesheet">
</head>
<body>
<div class="maindiv">
<!--HTML Form -->
<div class="form_div">
<div class="title">
<h2>Insert Data In Database Using PHP.</h2>
</div>
<form action="insert.php" method="post">
<!-- Method can be set as POST for hiding values in URL-->
<h2>Form</h2>
<label>Name:</label>
<input class="input" name="name" type="text" value="">
<label>Email:</label>
<input class="input" name="email" type="text" value="">
<label>Contact:</label>
<input class="input" name="contact" type="text" value="">
<label>Address:</label>
<textarea cols="25" name="address" rows="5"></textarea><br>
<input class="submit" name="submit" type="submit" value="Insert">
</form>
</div>
</div>
</body>
</html>
.maindiv {
margin:30px auto;
width:980px;
height:500px;
background:#fff;
padding-top:20px;
font-family:'Droid Serif',serif;
font-size:14px
.title {
width:500px;
height:70px;
font-size:16px;
text-align:center
.form_div {
width:70%;
float:left
form {
width:300px;
background-color:#f0f8ff
form h2 {
text-align:center;
textarea {
width:100%;
height:60px;
border-radius:1px;
margin-top:10px;
padding:7px;
border:none
.input {
width:100%;
height:30px;
border-radius:2px;
margin-top:10px;
padding:7px;
border:none;
margin-bottom:20px
.submit {
color:#fff;
border-radius:3px;
background:#1F8DD6;
padding:5px;
margin-top:40px;
border:none;
width:100%;
height:30px;
font-size:18px
p {
color:red;
text-align:center
span {
text-align:center;
color:green