I have an application written in PHP. I want the user to be able to make changes to their account information. I have a table with text fields which are populated with the current account info. However I have no clue how to reset the values when they make a change to say their last name.. Here is my code for populating the text fields.
Am I doing something wrong?
Code:
<table align = center border = 1>
<tr>
<td width = 200>First Name:</td>
<td><input name = "fname" type = "text" value = <?php echo $rowuser['fname']; ?> size = 50></td>
</tr>
<tr>
<td width = 200>Last Name:</td>
<td><input name = "lname" value = <?php echo $rowuser['lname']; ?> type = "text" size = 50></td>
</tr>
<tr>
<td width = 200>Address:</td>
<td><input name = "street" value = <?php echo $rowuser['street']; ?> type = "text" size = 50></td>
</tr>
<tr>
<td width = 200>City:</td>
<td><input name = "city" value = <?php echo $rowuser['city']; ?> type = "text" size = 50></td>
</tr>
<tr>
<td width = 200>State:<font size = "2">(Abbreviation)</font></td>
<td><input name = "state" value = <?php echo $rowuser['state']; ?> type = "text" size = 50></td>
</tr>
<tr>
<td width = 200>Zip:<font size = "2">(5 or 9 digit)</font></td>
<td><input name = "zip" value = <?php echo $rowuser['zip']; ?> type = "text" size = 50></td>
</tr>
<tr>
Am I doing something wrong?