[PHP] spaces vs nbsp; in form fields

2001-10-29 Thread Greg
I have a function which takes an integer (the id field for a record) and returns the corresponding full name of the person whose id matches the integer. The function constructs the full name by querying a table for the row which matches the id and then concatenating firstname, middlename, and

Re: [PHP] spaces vs nbsp; in form fields

2001-10-29 Thread Richard S. Crawford
The problem is that you have special characters that are interfering with the output. I had exactly the same problem a few weeks ago. Try this: $fixedOutputValue = htmlspecialchars($outputValue); print (input type=\text\ value=\$fixedOutputValue\ /); This is how I solved it. Note that