hi nadiam,
i think you are using $rw variable out of the scope. let me know is $rw globally defined variable in your php page?
pls notice
$rw = mysql_fetch_array($sql); // you defined here
} // closed loop here
} // closed loop here
?>
Event Name : <input type="text" name="ename" value="<?php if($rw) {echo htmlentities($rw['event_name']);} ?>" required />
that might be a problem check it once
let me know the status
happy coding