blob: 05e10395d8a3d67c8460fe0e4da157b1419c2c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* handlers user to drive
*
*/
function newuser(req, res) {
res.send('<!DOCTYPE html>\n' +
'<html>\n' +
'<body>\n' +
'<form method="post" action="/create">\n' +
' Tag: <input type="text" name="tag" /><br />\n' +
' ID: <input type="text" name="id" /><br />\n' +
' Make: <input type="text" name="make" /><br />\n' +
' Model: <input type="text" name="model" /><br />\n' +
' Year: <input type="text" name="year" /><br />\n' +
' Desc: <input type="text" name="desc" /><br />\n' +
' Signature: <input type="text" name="sig" /><br />\n' +
' Location: <input type="text" name="loc" /><br />\n' +
' <input type="submit" value="add" />\n' +
'</form>\n' +
'</body>\n' +
'</html>\n');
}
exports.newuser = newuser;
|