hello! i have here a code
<?php
include("include/session.php");
?>
<?php
echo $session->username;
$sql = "select * from employee where fname like 'pedro'"; // CONNECT KO TO DAPAT SA FORM KO NA SEARCH-FORM
$result=mysql_query($sql);
$num=mysql_num_rows($result);
$row = mysql_fetch_array($result);
//mysql_close();
if($row) {
$i=0;
while ($i < $num) {
$empnumber = $row[0];
$fname=$row[1];
$mname=$row[2];
$lname=$row[3];
$homeadd=$row[4];
$emailadd=$row[5];
$ofcnum=$row[6];
$mobilenum=$row[7];
$homenum=$row[8];
$position=$row[9];
$practice=$row[10];
$projname=$row[11];
$projmgr=$row[12];
$teamlead=$row[13];
$i = $i + 1;
}
}
?>
<html><br />
<form>
<body>
<font style="bold">
Employee Number:<input name="emp_number" type="text" value="<?php echo $empnumber; ?>" readonly="readonly" />
<br />
First Name:<input name="fname" type="text" value="<?php echo $fname; ?>" readonly="readonly"/>
<br />
Middle Name:<input name="mname" type="text" value="<?php echo $mname; ?>" readonly="readonly"/>
<br />
Last Name:<input name="lname" type="text" value="<?php echo $lname; ?>" readonly="readonly"/>
<br />
Home Address:<input name="homeadd" type="text" value="<?php echo $homeadd; ?>" readonly="readonly"/>
<br />
Email Address:<input name="emailadd" type="text" value="<?php echo $emailadd; ?>" readonly="readonly"/>
<br />
Office/project number:<input name="ofcnum" type="text" value="<?php echo $ofcnum; ?>" readonly="readonly"/>
<br />
Mobile Number:<input name="mobilenum" type="text" value="<?php echo $mobilenum; ?>" readonly="readonly"/>
<br />
Home number:<input name="homenum" type="text" value="<?php echo $homenum; ?>" readonly="readonly"/>
<br />
Position:<input name="position" type="text" value="<?php echo $position; ?>" readonly="readonly"/>
<br />
Practice:<input name="practice" type="text" value="<?php echo $practice; ?>" readonly="readonly"/>
<br />
Project Name:<input name="projname" type="text" value="<?php echo $projname; ?>" readonly="readonly"/>
<br />
Project Manager:<input name="projmgr" type="text" value="<?php echo $projmgr; ?>" readonly="readonly"/>
<br />
Team Leader:<input name="teamlead" type="text" value="<?php echo $teamlead; ?>" readonly="readonly"/>
<br>
<input type="submit" name="edit" value="Edit" />
<input type="submit" name="update" value="Update" action="update.php" />
<input type="submit" name="delete" value="Delete" action="delete.php"/>
</br>
</form>
</body>
</html>
can you please help me with a code for the button that if i click it, the text boxes will be enabled?
Thanks!