I have site with a mySQL database and a form which allows users to update their personal information.
I am successful in pulling information from the table.
I understand the basics of how to place it into a form for editing.
I'm using the line of code below in creating the form...
echo "<input type=\"text\" name=\"address1\" size=\"25\" value=" . $address1 . ">
Here's my problem...
If the user puts "1234 Main Street" in his profile, it populates the table as expected. However, when I use the line above to populate my form for him to edit, all the form displays is "1234"
The form appears to be splitting my information in the variable at the first blank space. This is happening on any field with multiple words in the text value.
Sorry if this isn't a PHP question exactly. But what am I doing wrong?