Using php/html, I want to retrieve email addresses (plus other information) from MySQL and then display the email addresses in an input box on a form. This will enable users to edit and submit corrected email addresses. However the retrieved email address does not display correctly in the input box. All other retrieved information display correctly. A section of the code is as shown below:
<tr><td ><span style=color:#125eaa><strong>Email</strong></style></td><td ><input style=background-color:#e2ffc6 name=email type=text id=email value=$email></td></tr>
<tr><td ><span style=color:#125eaa><strong> Address Line 1</strong></style></td><td ><input style=background-color:#e2ffc6 name=ad1 type=text id=ad1 value='$ad1'></td></tr>
The "Address Line 1" displays correctly but the email does not. I tried: type=email, but it did not resolve the issue.
Any help greatly appreciated.
Thanks,