It must be asked then, what are you expecting to achieve with the following code?
<div id="edit" class="white_content">
form edit page
<?
$id = $_GET['id'];
?>
</div>
It must be asked then, what are you expecting to achieve with the following code?
<div id="edit" class="white_content">
form edit page
<?
$id = $_GET['id'];
?>
</div>
i want to update my table based on that primary key ($id)…
The database table?
yes database table…
table name is “plan_kerja”…
It’s not possible to do that with JavaScript.
What does work though is to use server-side scripting (such as PHP) to do that by submitting a form, and then only after the server-side technique is working you can use JavaScript improve the user experience side of things.