I have the following link on index page
<td align="center"><a href="../athena/admin/update.php?id=' . $data ["keyword"] . ' ">update</a></td>
and this is the page it goes to … Update.php
and here is the code
$id=$_GET['keyword'];
<tr><td> Keyword: </td><td> <input type="text" name="keyword" id="keyword" value="<? echo $id['keyword']; ?>">
I want the keyword to be automatically inserted into the form so that the rest of info can be updated. How can i accomplish this? For some reason this is not working. It is putting the keywork in the URL ?id=KEYWORD on the update page but not displaying in the form. Prob something stupid im sure
You need to either use
$_GET['id']or change the link href to../athena/admin/update.php?keyword=. Currently, you are not looking for theidparameter, which contains the keyword.