text box only displaying one word as value

mslvr40

Can anyone help me understand why a text box won't display a whole string opposed to just the first word? For example if the value of Name is "John Smith", the text box will display "John"

echo "<td>" . "<input type = text name = name value =" . $record['Name'] . " </td>" ;

Musa

Thats because you did not quote your attribute value, without quotes spaces terminate the attribute value

echo "<td><input type = text name = name value =\"" . $record['Name'] . "\" ></td>" ;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Combo box only displaying one record

From Dev

Displaying one line of text only in a table cell

From Dev

Displaying one line of text only in a table cell

From Dev

Only one letter in text box validation

From Dev

Value will blink only once at the html text box

From Dev

Value will blink only once at the html text box

From Dev

Displaying text box input to a label?

From Dev

Use the mouse to select only one word in text jquery

From Dev

Write value from text box into cell only if textbox is not empty

From Dev

Displaying only one record in the table

From Dev

Put json return value from ajax in one or more text box

From Dev

How to get more than one value of text box using in condition

From Dev

how to get runtime value of one text box and show it to other text box using javascript

From Dev

SQL where condition is only receiving one word from the value of the field

From Dev

Displaying the slope of a line created by imline in a text box

From Dev

Multiplying two inputs with JavaScript & displaying in text box

From Dev

WordPress Meta Box Plugin Displaying Cloned Text

From Dev

Multiplying two inputs with JavaScript & displaying in text box

From Dev

Concatenating text-box values and displaying in a paragraph

From Dev

Displaying text next to a drop down box

From Dev

PHP only displaying first word of string in table

From Dev

AngularJS: Copy the value of one input box to another input box only if checkbox is checked

From Dev

Selected autocomplete value not displaying in input box

From Dev

Obtaining text from a user with one View Controller, Adding that value to the database and displaying it in another VC

From Dev

Why is it only printing one word of the text file rather than the whole text file to a html file

From Dev

only one box instead of two

From Dev

Shufle text value from array and display only one

From Dev

Select text value from only one object using jquery

From Dev

Displaying some text when mouse is over an input text box

Related Related

  1. 1

    Combo box only displaying one record

  2. 2

    Displaying one line of text only in a table cell

  3. 3

    Displaying one line of text only in a table cell

  4. 4

    Only one letter in text box validation

  5. 5

    Value will blink only once at the html text box

  6. 6

    Value will blink only once at the html text box

  7. 7

    Displaying text box input to a label?

  8. 8

    Use the mouse to select only one word in text jquery

  9. 9

    Write value from text box into cell only if textbox is not empty

  10. 10

    Displaying only one record in the table

  11. 11

    Put json return value from ajax in one or more text box

  12. 12

    How to get more than one value of text box using in condition

  13. 13

    how to get runtime value of one text box and show it to other text box using javascript

  14. 14

    SQL where condition is only receiving one word from the value of the field

  15. 15

    Displaying the slope of a line created by imline in a text box

  16. 16

    Multiplying two inputs with JavaScript & displaying in text box

  17. 17

    WordPress Meta Box Plugin Displaying Cloned Text

  18. 18

    Multiplying two inputs with JavaScript & displaying in text box

  19. 19

    Concatenating text-box values and displaying in a paragraph

  20. 20

    Displaying text next to a drop down box

  21. 21

    PHP only displaying first word of string in table

  22. 22

    AngularJS: Copy the value of one input box to another input box only if checkbox is checked

  23. 23

    Selected autocomplete value not displaying in input box

  24. 24

    Obtaining text from a user with one View Controller, Adding that value to the database and displaying it in another VC

  25. 25

    Why is it only printing one word of the text file rather than the whole text file to a html file

  26. 26

    only one box instead of two

  27. 27

    Shufle text value from array and display only one

  28. 28

    Select text value from only one object using jquery

  29. 29

    Displaying some text when mouse is over an input text box

HotTag

Archive