<!DOCTYPE html>
<html lang="en">
<head>
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<script src= "https://www.gstatic.com/firebasejs/3.7.4/firebase.js">
</script>
<title>Managing Firebase data</title>
</head>
<body>
<center>Managing Firebase Data</center>
<form id="contact">
ID: <input type="text" size="3" id="ID" value="1" />
Name: <input type="text" size="30" id="name" value="Poke Mon" />
Email: <input type="email" size="30" id="email" value="poke@example.com" />
<p id="result">[result]</p>
<button type="submit" onClick="addUser( ); return false;">Add a user
</button> (required: ID, name, email)
<button type="submit" onClick="showUser( ); return false;">Show a user
</button> (required: ID)
<button type="submit" onClick="showAll( ); return false;">Show all users
</button>
<button type="submit" onClick="deleteUser( ); return false;">Delete a user
</button> (required: ID)
<button type="submit" onClick="deleteDB( ); return false;">Delete the database
</button>
<button type="submit" onClick="updateUser( ); return false;">Update a user
</button> (required: ID)
<button type="reset">Reset</button>
</form>
|