diff --git a/connection.php b/connection.php new file mode 100644 index 0000000..0f4dbc2 --- /dev/null +++ b/connection.php @@ -0,0 +1,15 @@ +connect_error) { + echo"Connectin failed"; +} +else{ + // echo "Connection ok"; + } +?> \ No newline at end of file diff --git a/display.php b/display.php new file mode 100644 index 0000000..cf9f9b7 --- /dev/null +++ b/display.php @@ -0,0 +1,63 @@ + + + Display + + + + + +

Display all records

+
+ + + + + + + + + + + + + + + + + "; + } +} +else +{ + echo "No record found"; +} + +?> +
First NameLast NameGenderEmailPhoneAddress
".$result["fname"]." + ".$result["lname"]."".$result["gender"]."".$result["email"]."".$result["phone"]."".$result["address"]."
+
+ diff --git a/form.php b/form.php new file mode 100644 index 0000000..b240c66 --- /dev/null +++ b/form.php @@ -0,0 +1,102 @@ + + + + + + School Registration Form + + +
+
+
+ Registration Form +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+ +

Agree to terms and conditions

+
+
+ +
+ +
+ + + +alert('Please fill the form')"; + //} + //} + +?> diff --git a/style.css b/style.css new file mode 100644 index 0000000..b8afad1 --- /dev/null +++ b/style.css @@ -0,0 +1,160 @@ + * { + padding: 0; + margin: 0; + box-sizing: border-box; + } + + body { + background-color: #d071d0; + padding: 0 10px; + } + + .container { + max-width: 500px; + width: 100%; + background-color: white; + margin: 20px auto; + padding: 30px; + box-shadow: 5px 5px 5px rgba(0, 0, 0.5); + } + + .container .title { + font-size: 24px; + font-weight: 700; + margin-bottom: 25px; + color: Blue; + text-transform: uppercase; + text-align: center; + } + + .container .form { + width: 100%; + } + + .container .form .input_field { + margin-bottom: 15px; + display: flex; + align-items: center; + } + + .container .form .input_field label { + width: 200px; + margin-right: 10px; + font-size: 14px; + } + + .container .form .input_field .input, + .container .form .input_field textarea { + width: 100%; + outline: none; + border: 1px solid #d071d0; + font-size: 15px; + padding: 6px 8px; + border-radius: 5px; + transition: all 0.5s ease; + } + + .container .form .input_field textarea { + resize: none; + height: 70px; + } + + .container .form .input_field .custom_select { + position: relative; + width: 100%; + height: 37px; + } + + .container .form .input_field .custom_select select { + -webkit-appearance: none; + appearance: none; + width: 100%; + height: 100%; + border: 1px solid #d071d0; + border-radius: 5px; + outline: none; + } + + .container .form .input_field .custom_select::before { + content: ""; + position: absolute; + top: 12px; + right: 10px; + border: 8px solid black; + border-color: #d071d0 transparent transparent transparent; + pointer-events: none; + } + + .container .form .input:focus, + .container .form .textarea:focus, + .container .form select:focus { + border: 1px solid purple; + } + + .container .form p { + font-size: 14px; + color: #757575; + } + + .container .form .check { + width: 15px; + height: 15px; + position: relative; + display: block; + cursor: pointer; + } + + .container .form .check input[type="checkbox"] { + position: absolute; + top: 0; + left: 0; + opacity: 0; + } + + .container .form .check .checkmark { + width: 15px; + height: 15px; + border: 1px solid #d071d0; + display: block; + position: relative; + } + + .container .form .check .checkmark::before { + content: ""; + position: absolute; + top: 1px; + left: 2px; + width: 5px; + height: 2px; + border: 2px solid; + border-color: transparent transparent white white; + transform: rotate(-45deg); + } + + .container .form .check input[type="checkbox"]:checked~.checkmark { + background: #d071d0; + } + + .container .form .check input[type="checkbox"]:checked~.checkmark:before { + display: block; + } + + .container .form .btn { + width: 100%; + padding: 8px 10px; + font-size: 15px; + border: o; + background-color: #d071d0; + color: white; + cursor: pointer; + border-radius: 3px; + outline: none; + } + + .container .form:last-child { + margin-bottom: 0; + } + + .container .form .btn:hover { + background: purple; + } \ No newline at end of file