登录 | 注册 | FAQ
Anonymous

how to create a page in insert data

+ 发表回复

2 篇帖子 分页: 1 / 1


how to create a page in insert data

magraj » 周日 2月 26, 2017 10:33 am

how to create a page which insert data and submit then the data save in page .
头像

magraj

  • 帖子: 1
  • 注册: 周日 2月 26, 2017 10:27 am

Re: how to create a page in insert data

Farhin Qureshi » 周一 2月 27, 2017 11:05 am

magraj 写道:how to create a page which insert data and submit then the data save in page .


代码: 全选
<!DOCTYPE html>
<html>
  <head lang="en">
  <meta charset="UTF-8">
  <script language="JavaScript">
    function showInput() {
        document.getElementById('display').innerHTML =
                    document.getElementById("user_input").value;
    }
  </script>

  </head>
<body>

  <form>
    <label><b>Enter a Message</b></label>
    <input type="text" name="message" id="user_input">
  </form>

  <input type="submit" onclick="showInput();"><br/>
  <label>Your input: </label>
  <p><span id='display'></span></p>
</body>
</html>


this is the example in which there is one text box and when you click on submit button the text will be displayed on the same page that you have entered in textbox
头像

Farhin Qureshi

  • 帖子: 45
  • 注册: 周二 1月 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ 发表回复

分页: 1 / 1