A Hands-On Experience in Web Dev
A Hands-On Experience in Web Dev
in
Web Development
1. Flipkart
2. PayTM
3. Zomato
4. Swiggy
5. Amazon India
6. OYO
7. Facebook
8. Instagram
9. Google
10.Snapchat
11.Microsoft
And who manages these websites?
Different Roles and
Front-end Developer
Back-end Developer
• JavaScript
• Progressive Web App
• Single Page Application
• Mobile-friendly Website
• Cybersecurity
Mobile-Friendly Website
if (isset($_POST['login_user'])) {
$username = mysqli_real_escape_string($db, $_POST['username']);
$password = mysqli_real_escape_string($db, $_POST['password']); Server side
if (empty($username)) {
array_push($errors, "Username is required");}
if (empty($password)) {
array_push($errors, "Password is required");}
if (count($errors) == 0) {
$password = md5($password);
$query = "SELECT * FROM user WHERE username='$username' AND password='$password'";
$results = mysqli_query($db, $query);
if (mysqli_num_rows($results) == 1) {
$_SESSION['username'] = $username;
$_SESSION['success'] = "You are now logged in";
header('location: index.php');
}else {
array_push($errors, "Wrong username/password combination");
error_reporting(E_ALL ^ E_WARNING);
}}}
Is this done Server side or Client Side ??
$(function(){
$("#passtry2").on("keyup keydown focusout", function(){
var pass1 = frmsignout.newpass.value;
var pass2 = frmsignout.confirmpass.value;
if(pass1 == pass2 && pass1!='')
$(this).css('border','2px solid lime');
else{
$(this).css('border','2px solid red');
}
});
});
Event Feedback