What's new

Closed Guys tanong lng po about html/css

Status
Not open for further replies.

SanX

Eternal Poster
Joined
Jun 25, 2016
Posts
743
Reaction
864
Points
404
mga maam/sir pano po gumawa ng login form na ikaw lng ang makakapasok ?without using php,mysql etc. ang gamit lng ay html at css
 
Kung fundamentals of the web ang pinaguusapan: Ikaw mismo masasagot mo na mismo tanong mong yan TS.
Ang tanging ginagawa lang ng HTML at CSS ay magprovide ng layout at design ng webpage mo (NO BUSINESS LOGIC BEHIND). Ang user authentication ay kinakailangan ng logic, storage para sa credentials ng users mo and then kinakailangan mong ipasa itong user credentials sa isa sa mga ito: Session, cøøkíé or JWT para magkaroon ng persistent connection or identity sa bawat request mo sa page. Kung bakit ganun ang mechanism ng web ay dahil ang HTTP PROTOCOL ay STATELESS. Research ka na lang TS.
 
kung layout lang pwede ka gumawa, pero yung working login system, imposibleng magawa mo yan gamit html,css lang, kelangan mo dyan database.
 
pwede yan paps..

<?php
// Start session
session_start();

// Username and password
$ID = "admin";
$pass = "123456";

if (isset($_POST["ID"]) && isset($_POST["pass"])) {

if ($_POST["ID"] === $anvandarID && $_POST["pass"] === $pass) {
/
$_SESSION["inloggedin"] = true;

header("Location: yourhome.php");
exit;
}
// Wrong login - message
else {$wrong = "Bad ID and password, the system could not log you in";}
}
?>
 
At least any back end programming or javascript bro possible yang gusto mo. HTML, CSS its impossible. Just read some documentation makakatulong sa iyo yan.
 
html and css only for site layout and formatting, aside from that wala ka na masyado magagawa. simple php lang ata yan hihi
 
Status
Not open for further replies.
Back
Top