I have a PHP page in wich I charge result of a query into a Table that i defined like so:
<?php
$json=file_get_contents("http://www.example.com/myfile.php");
$data = json_decode($json);
if (count($data->result)) {
echo "<table id= 'tabclb'>";
foreach ($data->result as $arr => $result) {
echo"<tr>";
echo "<td><a href=sel_clb.php?id=$result->ID>$result->ID</a></td>";
echo"<td>$result->Name</a></td>";
echo"</tr><td>";
}
echo "</table>";
}
?>
As you can see, my table will have an hyperlink to a php file to recall that name using the ID record. In php file where i have stored my query, I use GET to execute query Json. Well, can someone tell me how I can take ID and Name from query and put them into two textbox that I already have created in my php page like so?
</form>
<form action="upd_collab.php" method="post" name="form" id="form">
<label for="nome">Recall</label>
<input name="idx" type="text" placeholder="idx"/>
<label for="pass"><br />
<br />
Nome<br />
<input name="Nome" type="text" placeholder="Nome"/>
<br />
Sesso (M/F)</label>
<p><input name="Sesso" type="Sesso" placeholder="Sesso"/>
</p>
<p>
<input name="submit" type="submit" value="Modifica"/>
</p>
<p> </p>
</form>
I hope it's clear. Thanks