File manager - Edit - /home/autoph/public_html/portal/ajs/main.php
Back
<html> <body> <script type="text/javascript" src="vendors/bower_components/angular/angular.min.js"></script> <form> Student ID: <input type="text" ng-model="id" name="id"> Student Name: <input type="text" ng-model="name" name="name"> <input type="button" value="Submit" ng-click="insertdata()"> </form> <table> <thead> <tr> <th>Name</th> <th>Roll No</th> </tr> </thead> <tbody> <tr ng-repeat="student in data"> <td>{{student.studid}}</td> <td>{{student.studname}}</td> </tr> </tbody> </table> <script> var app=angular.module('myApp',[]); app.controller('cntrl'),function($scope, $http){ $scope.insertdata=function(){ $http.post("insert.php",{'id':$scope.id, 'name':$scope.name}) .success(function(){ $scope.msg="Data Inserted"; } } } </script> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings