-
Notifications
You must be signed in to change notification settings - Fork 2
/
form.php
35 lines (35 loc) · 874 Bytes
/
form.php
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
26
27
28
29
30
31
32
33
34
35
<?php
echo 'At Node ' . $_GET['node'] . '<br/>';
echo '<form method="post">
<table cellpadding="5">
<tr>
<td>UUID:</td>
<td><input id="addPeer" type="text" name="addPeer"> </td>
</tr>
<tr>
<td>Endpoint:</td>
<td><input id="endpoint" type="text" name="endpoint"> </td>
</tr>
<tr>
<td><input type="submit" value="AddPeer"></td>
</tr>
</table>
</form>';
echo '<form method="post">
<table cellpadding="5">
<tr>
<td>Name:</td>
<td><input id="originator" type="text" name="originator"> </td>
</tr>
<tr>
<td>Message:</td>
<td><textarea id="message" name="message" rows="10" cols="80"></textarea></td>
</tr>
<tr>
<td><input type="submit" value="Send"></td>
</tr>
</table>
<input id="endpoint" type="hidden" name="endpoint" value="http://localhost'.$_SERVER['REQUEST_URI'].'">
</form>
';
?>