Giter VIP home page Giter VIP logo

php's Introduction

ねえ、ここ 👋

  • 🔭 I’m currently NOT working
  • 🌱 I’m currently learning ほん 🇯🇵 on Duolingo
  • 👯 I’m looking to collaborate on Microsoft? 😳
  • 🤔 I’m looking for help with C
  • 💬 Ask me about かん
  • 📫 How to reach me: Just msg me 😄 [email protected]
  • 😄 Pronouns: I'm to be アイスクリーム 🍦
  • ⚡ Fun fact: I'm not GAY

Top Langs

php's People

Contributors

crzq avatar qiavo avatar

Watchers

 avatar

Forkers

wdnmd20 qiavo

php's Issues

Register.php

<script type="text/javascript"> var elform = document.getElementsByTagName("form")[0]; //获取表单 elform.onsubmit=function(){ //表单提交,调用checkData()函数验证数据,如果验证出错,中止表单提交 return checkData(); } //验证各项用户输入的数据 function checkData(){ var valid=true; //验证是否通过的标识 //学号必填 var elStuNo=document.getElementsByName("stuNo")[0]; //获取学号文本框 if(elStuNo.value==""){ elStuNo.nextSibling.innerHTML="*学号必填!"; //学号文本框右侧的文字标签显示提示信息 valid=false; //验证错误 } else{ elStuNo.nextSibling.innerHTML="*"; //清除错误提示信息 } //姓名必填 var elStuName=document.getElementsByName("stuName")[0]; //获取姓名文本框 if(elStuName.value==""){ elStuName.nextSibling.innerHTML="*姓名必填!"; valid=false; } else{ elStuName.nextSibling.innerHTML="*"; } // 密码必填 吴正峰 var elpassword=document.getElementsByName("pwd")[0]; //获取姓名文本框 if(elpassword.value==""){ elpassword.nextSibling.innerHTML="*密码必填!"; valid=false; } else{ elpassword.nextSibling.innerHTML="*"; } // 密码和确认密码要一致 var confirmPwd=document.getElementsByName("confirmPwd")[0]; if(confirmPwd.value!=elpassword.value){ confirmPwd.nextSibling.innerHTML="*确认密码和密码不一致!"; valid=false; } else{ confirmPwd.nextSibling.innerHTML="*"; } // 手机号必填 (余文昊) var elmobile=document.getElementsByName("mobile")[0]; //获取姓名文本框 if(elmobile.value==""){ elmobile.nextSibling.innerHTML="*手机号必填!"; valid=false; } else{ elmobile.nextSibling.innerHTML="*"; } // 输入有效的手机号 // var elmobile=document.getElementsByName("mobile")[0]; var regexmobile=/^1[3|5|8]\d{9}$/; if(elmobile.value!=""&&!regexmobile.test(elmobile.value)){ elmobile.nextSibling.innerHTML="*输入有效手机号!"; valid=false; } // 验证码必填(吴剑) var elyanzhengm=document.getElementsByName("yanzhengma")[0]; //获取姓名文本框 if(elyanzhengm.value==""){ elyanzhengm.nextSibling.innerHTML="*验证码必填!"; valid=false; } else{ elyanzhengm.nextSibling.innerHTML="*"; } return valid; } </script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.