嗨我想发送表单数据到php确认页面。确认页面应包含注册人的详细信息。新注册人的详细信息应添加到以前注册的人员。这是我所做的,但不是将新的信息添加到表中,而是替换它。我是新来的PHP,我需要如何绕过它的建议。它应该是这样的提交后:如何添加表格日期到html表格
--------------------------
Registration Conformation |
---------------------------------------------
First name |Last name |Email |
---------------------------------------------
Jack |Fams |[email protected] |
---------------------------------------------
Matthew |Bills |[email protected] |
---------------------------------------------
Judith |Kamps |[email protected] |
---------------------------------------------
Registration form.button{
box-shadow: 10px 10px 5px #888888;
padding: 5px;
width: 90%;
}
.div{
border: 2px solid black;
width: 28%;
margin: auto;
margin-top: 15%;
padding: 10px;
font-family: Comic Sans;
text-align: center;
}
h1{
text-align: center;
font-family: "Comic Sans", "Comic Sans MS", cursive;
font-weight: bold;
}
table.set{
text-align: center;
margin-left: auto;
margin-right: auto;
width: 60%;
}
td{
text-align: left;
font-family: "Comic Sans", "Comic Sans MS", cursive;
font-weight: bold;
}
NewsLetter-Registration
First Name: | |
Last Name: | |
E-mail: | |
registry.php
Registration form.button{
box-shadow: 10px 10px 5px #888888;
padding: 5px;
width: 90%;
}
.div{
width: 60%;
margin: auto;
margin-top: 15%;
padding: 10px;
font-family: Comic Sans;
text-align: center;
}
h1{
text-align: left;
font-family: "Comic Sans", "Comic Sans MS", cursive;
font-weight: bold;
}
table.set{
text-align: center;
margin-left: auto;
margin-right: auto;
width: 60%;
border-collapse: collapse;
border: 2px solid black;
}
td{
text-align: left;
font-family: "Comic Sans", "Comic Sans MS", cursive;
font-weight: bold;
}
NewsLetter-Registry | ||
First Name: | Last Name: | |
<?php echo $_POST["fname"]; ?> | <?php echo $_POST["lname"]; ?> | <?php echo $_POST["email"]; ?> |
+0
它看起来像你需要使用数据库来存储以前的注册人。每次您加载确认页面时,都会有一个SQL查询来获取所有当前注册的人员。 –
+0
非常感谢JREAM,有没有其他方法可以在不使用数据库的情况下做到这一点? –