<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>This is the REGISTER page!</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
function submitRegForm () {
var user=document.forms[username][usr].value;
var pass=document.forms[username][pwd].value;
var bday=document.forms[username][dob].value;
var loggedin=document.forms[username][loggedin]=false;
confirm("succesfully registered");
}
</script>
<div align="left">
<form name="Register" action="submitRegForm()" >
Username *: <input type="username" name="username" />
<br>
<br>
Password *: <input type="password" name="pwd" />
<br>
<br>
Date of Birth *: <input type="date of birth" name="dob" />
<br>
<br>
<input type="submit" value="Submit" />
</form>
</div>
<button type="button" onclick="window.location='index.html'">Return to main page!</button>
</body>
</html>
对于TL;你的DR,(使用JS只需要几个小时)我需要与其他页面共享文档表单或什么,我还有两个页面,一个是主屏幕,第二个是登录,最后一个是登记册。
我是否将表单定向到特定文件夹?还有另一种实际方法吗?我正在阅读一些关于PHP的内容,请阅读它基本上保存了所有这些表格,如果我要求所有页面之间的当前会话?如果事实如此,我仍然有如何存储所有这些注册用户的问题? 提前谢谢!