Skip to content

Instantly share code, notes, and snippets.

@hquach hquach/form.php
Created Nov 9, 2018

What would you like to do?
<!doctype html>
<title>AngularJS, PHP, MySQL</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src="js/app.js"></script>
<div ng-app='myapp' ng-controller="userCtrl">
<!-- New entry -->
<td>First Name</td>
<td><input type='text' id='txt_fname' ng-model='fname'></td>
<td>Last Name</td>
<td><input type='text' id='txt_lname' ng-model='lname'></td>
<td><input type='text' id='txt_username' ng-model='username'></td>
<td><input type='button' id='but_save' value='Save' ng-click="add()" ></td>
<!-- User list -->
<table border="1">
<th>First name</th>
<th>Last name</th>
<tr ng-repeat="user in users">
<td><input type='button' ng-click='remove($index,;' value='Delete'></td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.