STGpracticle 3
STGpracticle 3
STGpracticle 3
.btn
{
background-color: #80f4ff;
color:#ffffff;
padding:12px 20px;
margin:10px;
border:none;
border-radius:4px;
cursor:pointer;
font-size: 25px;
transition: transform 0.2s ease-in-out;
}
.btn:hover{
background-color: #63effc;
transform: scale(1.1);
}
.gradient
{
background-image: linear-gradient(to
left,#f1a3fd,#c891fc,#a1c4ff);
width: 700px;
height:1000px;
padding:10px,80px;
border:none;
border-radius:10px;
}
.txt
{
width:300px;
height:40px;
padding:0px 12px;
border:none;
border-radius: 4px;
margin:20px;
box-sizing: border-box;
Student Registration Form
font-size: 20px;
}
.txtadd
{
width:300px;
height:130px;
padding:0px 12px;
border:none;
border-radius: 4px;
margin:20px;
box-sizing: border-box;
font-size: 20px;
}
form {
text-align: center; /*Center align the form */
color:#1a0034;
}
</style>
<!Doctype html>
<html>
<head>
<title>Student Registration Form</title>
</head>
<body>
<center>
<br>
<h1><font color=#590028 size="54">Student Registration
Form</font></h1>
<br><br><h2>
<div class="gradient">
<form method="POST" action="StudentData.php">
<br>
Name: <input type="text" name="txt1" value="" class="txt">
<br>
Rollno: <input type="text" name="txt2" value="" class="txt">
<br><br>
<div class="radio-group">
Gender: </pre>
<label><input type="radio" name="gender" value="Male">
Male</label>
<label><input type="radio" name="gender" value="Female">
Female</label>
<label><input type="radio" name="gender" value="Other">
Other</label>
Student Registration Form
</div>
<br>
Year: <select name="year" class="txt">
<option>1st Year</option>
<option>2nd Year</option>
<option>3rd Year</option>
</select>
<br>
echo"<center><h1>Rollno: ",$_POST['txt2'],"</h2>";
/*echo"<center><br><h1>Gender: ",$_POST['gender'],"</h2>";*/
$gen=$_POST['gender'];
echo"<center><h1>Gender is :",$gen."</h1>";
echo"<center><h1>Year: ",$_POST['year'],"</h2>";
echo"<center><h1>Branch: ",$_POST['branch'],"</h2>";
}
else
{
echo"<br><h2><center>Enter details properly</h2>";
}
}
?>
Student Registration Form
Student Registration Form