005.html
1 <HTML>2 <Head>3 <title>005</title>4 <Scripttype= "Text/javascript"src= "Js/jquery.js"></Script>5 <style>6 * {7 margin:0;8 padding:0;9 }Ten </style> One </Head> A <Body> - <formAction= "005b.php"Method= "POST"> -User Login<BR/> theUser name:<inputtype= "text"name= "Uname"/><BR/> -Password<inputtype= "Password"name= "Upwd"/><BR/> - <inputtype= "Submit"value= "Submit"/> - <inputtype= "Reset"value= "Reset"/> + </form> - </Body> + </HTML> A at <Scripttype= "Text/javascript"> - </Script>
005b.php
1<?PHP2 /*3 * Isset () is used in PHP to detect if a variable is set, and the function returns a Boolean-type value, that is, True/false. 4 */5 6 if(isset($_post)) {7 if($_post["uname"] = = "Admin" &&$_post["upwd"] = = "Admin") {8 Echo"User logon succeeded";9}Else{Ten Echo"User logon Failed"; One } A}
Php--isset () is used in PHP to detect if a variable is set