I am working on a code that has a registration form with fields like name,company name,email,password,etc. This form is acting perfectly as the data is been stored in a table using phpmyadmin.But now what i want is to create a certificate page belonging to the name entered in the registration form. Can anyone please help me with this?
1条回答 默认 最新
- douzhuo8871 2017-06-05 10:45关注
as far as i know html cannot proceed the date entered in form one can make use of javascipt or php for that i guess you dont have php server so im giving you javascript code for get values from form and frame a ceritficate
function generate() { var name = document.getElementById("name").value; var age = document.getElementById("age").value; document.write("<center><fieldset><legend>Certificate</legend><br><br>Name = " +name+ "<br>Age = "+ age + "</fieldset></center>"); }
<html> <center> <form method="post"> <input type=text id="name" placeholder="Enter Name"> <br><br> <input type=text id="age" placeholder="Enter Age"> <br><br> <input type=submit onClick="generate()"> </form> </center> </html>
</div>
解决 无用评论 打赏 举报
悬赏问题
- ¥15 Python turtle 画图
- ¥15 关于大棚监测的pcb板设计
- ¥15 stm32开发clion时遇到的编译问题
- ¥15 lna设计 源简并电感型共源放大器
- ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
- ¥15 Vue3地图和异步函数使用
- ¥15 C++ yoloV5改写遇到的问题
- ¥20 win11修改中文用户名路径
- ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
- ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计