Zaloguj | Zarejestruj | FAQ
Anonymous

how to create a page in insert data

+ Odpowiedz

Posty: 2 Strona 1 z 1


how to create a page in insert data

przez magraj » N lut 26, 2017 10:33 am

how to create a page which insert data and submit then the data save in page .
Avatar użytkownika

magraj

  • Posty: 1
  • Dołączył(a): N lut 26, 2017 10:27 am

Re: how to create a page in insert data

przez Farhin Qureshi » Pn lut 27, 2017 11:05 am

magraj napisał(a):how to create a page which insert data and submit then the data save in page .


Kod: Zaznacz cały
<!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
Avatar użytkownika

Farhin Qureshi

  • Posty: 45
  • Dołączył(a): Wt sty 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com


+ Odpowiedz

Strona 1 z 1