0

I am getting first name from user through an input box as "Catho Fransis" and saving it to my mysql db into a single field.

When i am trying to display this name in another text box in another page, only "Catho" get displayed. The words after a whitespace is ignored.

<td>
     <input disabled type="text" name="fname" style="width:235px;" value={{ user.first_name }}  > 
</td>

How do i display the name?

Tim Selaty Jr.
  • 599
  • 4
  • 6
USER
  • 17
  • 3
  • 11

1 Answers1

1

Try putting quotes around {{ user.first_name }}

<td><input disabled type="text" name="fname" style="width:235px;" value="{{ user.first_name }}"> </td>

For more info: see here

Community
  • 1
  • 1
J. Ghyllebert
  • 2,009
  • 1
  • 29
  • 35
  • Thanks, it worked, I thought that Since we are giving "{{ user.first_name }}" in value, The output is {{ user.first_name }}.... – USER Apr 20 '13 at 10:40