Java User Registration Code

Source: Internet
Author: User

<div class= "Registerbox" > <sf:form class= "form-register" name= "Formregistername" method= "POST" modelattribute= "User" > <!--<ul> <li><input name= "" Typ                        E= "text" class= "Loginuser" value= "User name" onclick= "javascript:this.value=" "/></li> <li><input name= "" type= "text" class= "loginpwd" value= "password" onclick= "Javascript:this.value=" "/></li> <li><input name=" "type=" text "class=" loginpwd "Value=" Confirm password "onclick=" javascript:this.value= ""/></li> <l I><input name= "" type= "text" class= "Loginpwd" value= "Mailbox" onclick= "Javascript:this.value="                            ' "/></li> <li><input name=" "type=" button "class=" loginbtn "value=" register " Onclick= "javascript:window.location= ' main.html '"/></li> </ul> <ul&gt                    ; <li><sf:input type= "text" path= "name" class= "Loginuser" name= "name" placeholder= "User name"                            /></li> <li><sf:input type= "password" path= "password" class= "Loginpwd" Name= "password" placeholder= "password"/></li> <li><input type= "password" path                    = "ConfirmPassword" name= "ConfirmPassword" class= "Loginpwd" placeholder= "Confirm password"/></li> <li><sf:input type= "text" path= "email" class= "loginpwd" name= "email" pl                            aceholder= "Mailbox"/></li> <li><button type= "button" class= "Loginbtn" Onclick= "Registerinspection ()" > Registration </button> </ul> <script language= "JaVascript "type=" Text/javascript "> Function registerinspection () {var name =                        Document.formRegisterName.name;                        var password = Document.formRegisterName.password;                        var confirmpassword = Document.formRegisterName.confirmPassword;                        var email = document.formRegisterName.email;                        Alert (name + "\ n" + password + "\ n" + ConfirmPassword + "\ n" + email); /* if (name.value.length==0) {alert ("Please enter username!")                            ");                            Name.focus ();                        return false; } if (password.value== "" | | Password.value==null) {alert ("Please enter a password!                            ");                            Password.focus ();                        return false; } if (confirmpassword.value== "" | | ConfirmpasSword.value==null) {alert ("Please enter a confirmation password!)                            ");                            Confirmpassword.focus ();                        return false; } if (email.value== "" | | Email.value==null) {alert ("Please enter your email!)                            ");                            Email.focus ();                        return false; } return true; */if (!inspect (name) | | |!inspect (password) | |!inspect (CONFIRMPASSW ORD) | |                        !inspect (email)) {return false;                        } document.formRegisterName.submit (); Alert ("Success!                        ");                    return true; } </script> </sf:form> </div>

  

<script>    function Inspect (variable) {        if (Variable.value = = "" | | Variable.value = = NULL                | | variable.value = = undefined) {            alert ("Fill in the full registration information!") ");            Variable.focus ();            return false;        }        else{            return true;        }    } </script>

  

Java User Registration Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.