Yaluvane kohomada me form eka submit karata passe html form eka hide vela results tika vitharak denne,mata danaganna one kohomada html form eka hide venne kiyala submit karahama
Code:
<html>
<body>
<h3> Login Page </h3>
<?php
//Checks whether the "login" key exists in the $_POST
//array to make sure that Submit button in the form
//hasn't been pressed
if (!isset($_POST["login"]) || ($_POST["login"] !=
"Login")) {
?>
<form name="form1" method="post" action="loginform.php">
Username :<input name="uname" type="text"><br/>
Password :<input name="passwd" type="password"><br/>
<input type="submit" name="login" value="Login">
</form>
<?php
}else{
// If the form has been submiited then display the form
// values for the $_POST array
?>
<strong>Username </strong> <?php echo $_POST["uname"] ?>
<br>
<strong>Password </strong> <?php echo $_POST["passwd"] ?>
<?php
}
?>
</body>
</html>
Last edited:

,
simple