jsolutions
Programmer
Hi - I am using a form to allow user's to update information. It is an HTML form that contains First Name, Last Name, Address, City, State and Zip. I am using PHP to query a MySQL database to pull the exiting values into the form. Then, the user can edit the information.
So, for example to display the first name in the form, I am using the statement:
Note:$first was assigned earlier in the code.
This works fine until I hit something that has a space in it, for example, address1. If someone lives at 1459 Woodland Drive, the only thing that shows up is 1459. If I remove the PHP and type in "1459 Woodland Drive" in the value field, it shows up in the textbox.
Any help on this would be greatly appreciated.
So, for example to display the first name in the form, I am using the statement:
Code:
<input type="text" name="firstName" value = <?php echo "$first"; ?>>
This works fine until I hit something that has a space in it, for example, address1. If someone lives at 1459 Woodland Drive, the only thing that shows up is 1459. If I remove the PHP and type in "1459 Woodland Drive" in the value field, it shows up in the textbox.
Any help on this would be greatly appreciated.