Ayan Tiwari ROLL NO-58072 BSC Hons Computer Science 2 Year
Ayan Tiwari ROLL NO-58072 BSC Hons Computer Science 2 Year
ROLL NO-58072
BSc HONS COMPUTER SCIENCE 2 year
1.
<?php
$response = null;
$conn=mysqli_connect('localhost','root','','registration');
if(!$conn) {
if(isset($_POST['submit'])) {
$uname=$_POST['user'];
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$email=$_POST['email'];
$pwd=$_POST['pwd'];
$pwd1=$_POST['pwd1'];
$gender=$_POST['gender'];
if( empty($uname) || empty($lname) || empty($fname) || empty($email) ||
empty($pwd) || empty($pwd1) || empty($gender) ) {
$response = "<div class = 'showError'> Fill up all the fields !!! </div>";
$response = "<div class = 'showError'> Password did not match !!! </div>";
else{
$res = mysqli_query($conn,$sql);
if(mysqli_num_rows($res)>0 ) {
else {
if(mysqli_query($conn,$sql)) {
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="container">
</div>
</form>
</body>
</html>
Style.css
body {
background-image: url("image1.jpg");
background-size: 100%;
.container {
background-image: linear-gradient(red,#333);
margin-top: 150px;
opacity: 0.8;
border-radius: 10px;
transition: margin-left,margin-right,width;
transition-duration: 2s;
margin-left: 350px;
margin-right: 400px;
.container:hover {
margin-left: 0;
margin-right: 0;
width : 95%;
}
.field {
border-radius: 8px;
margin-left: 50px;
width :80%;
margin-bottom: 15px;
height: 25px;
.radio {
margin-left: 50px;
height: 20px;
.button {
border-radius: 2px;
position: relative;
margin-top: 15px;
background-color: red;
margin-left: 240px;
color: white;
}
.button:hover {
border-radius: 15px;
transform: rotateY(360deg);
.showError {
color: red;
.showSuccess {
color: green;