I make edit.php with show all data in form from MySQL.
All data is show on form rightly, but it's not work on dropdown and textarea.
I need help and this is my code
<form method="post" action="editdata.php">
<?php
include 'config.php';
$id = $_GET['id'];
$sqlTampil = "select * from data_korban Where kasus_id=$id";
$qryTampil = mysql_query($sqlTampil);
$dataTampil = mysql_fetch_array($qryTampil);
?>
Dropdown value is still default, not selected value and TextArea is blank
<select name="agama" id="agama" value="<?php echo $rows -> agama;?>">
<option value="Islam">Islam</option>
<option value="Khatolik">Khatolik</option>
<option value="Protestan">Protestan</option>
<option value="Hindu">Hindu</option>
<option value="Buddha">Buddha</option>
<option value="Lain-Lain">Lain-Lain</option>
</select>
<textarea id="alamatkorban" rows="5" name="alamatkorban"
value="<?php echo $rows -> alamatkorban;?>"
cols="33">
</textarea>
Thank You for Your Help