forked from hebertialmeida/Serialize-Table
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax.php
More file actions
29 lines (29 loc) · 706 Bytes
/
ajax.php
File metadata and controls
29 lines (29 loc) · 706 Bytes
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
<?php
$json = $_REQUEST["registration"];
$obj = json_decode($json);
?>
<h2>Fields of Table</h2>
<code class="block">
JSON <?php echo $json ?>
</code>
<code class="block"><?php print_r($obj) ?></code>
<form action="">
<ul id="form">
<li>
<label for="">Name:</label>
<input type="text" value="<?php echo $obj[0]->name?>" />
</li>
<li>
<label for="">University:</label>
<input type="text" value="<?php echo $obj[0]->university?>" />
</li>
<li>
<label for="">Post Code:</label>
<input type="text" value="<?php echo $obj[0]->post_code?>" />
</li>
<li>
<label for="">Region:</label>
<input type="text" value="<?php echo $obj[0]->region?>" /><br />
</li>
</ul>
</form>