Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <!-- Change this if you want to allow scaling -->
- <meta name="viewport" content="width=default-width; user-scalable=no" />
- <meta http-equiv="Content-type" content="text/html;charset=utf-8">
- <title>Trial app</title>
- <link rel="stylesheet" href="thestylesheet.css" type="text/css">
- <script type="text/javascript" charset="utf-8" src="javascript1.js"></script>
- <script type="text/javascript" charset="utf-8" src="javascript2.js"></script>
- <script type="text/javascript" charset="utf-8" src="cordova-1.8.0.js"></script>
- <script>
- $(document).ready(function () {
- $("#btn").click( function() {
- var id = $('#id').val();
- var name = $('#name').val();
- var Address = $('#Address').val();
- var person = new Array();
- person[0] = id;
- person[1] = name;
- person[2] = Address;
- var topost;
- $.ajax({
- url: "http://localhost/connection.php",
- type: "POST",
- data : {topost : JSON.stringify(person)},
- datatype: "json",
- success: function(data) { alert(data); }
- });
- return false;
- });
- });
- </script>
- </head>
- <body>
- <div data-role="header">
- <h1>National Innovation Foundation</h1>
- </div><!-- /header -->
- <div data-role="content">
- <form id="target" method="post">
- <label for="id">
- <input type="text" id="id" placeholder="ID">
- </label>
- <label for="name">
- <input type="text" id="name" placeholder="Name">
- </label>
- <label for="Address">
- <input type="text" id="Address" placeholder="Address">
- </label>
- <div id="btn" data-role="button" data-icon="star" data-theme="e">Add record</div>
- <!--<input type="submit" value="Add record" data-icon="star" data-theme="e">
- -->
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement