i try to do edit button....and this is my code
<?php
if (isset($_REQUEST['edit'])){
if(@$_REQUEST['purpose2'] != $_SESSION['purpose'])
$purpose2=$_REQUEST['purpose2'];
$query = "UPDATE voucher SET purpose ='$_REQUEST['purpose2']' WHERE emp_1=('$_SESSION[emp_1]')" ;
mysql_query($query) or die('Error, insert query failed');
}
?>
...
when i click the edit buutin...the data in purpose field is dissappear...it supposed replace with new value...(purpose)...but it empty...no data in that field,,,someone please help to solve...realy urgent...my project stuck because of this.....thank you in advanced
hates make waste:eek: