eva21 Posted July 28, 2008 Share Posted July 28, 2008 Hello, im reading from a database and it is a question for example "Do you like apples" Now my code is the following echo "<input type=text name=\"question\" size=\"25\" value=" . $rows4['question'] . ">"; It only displays to the user "Do" why? Just to let you know, i am allowing the user to edit the question so yes, i need it in a text box, but i dont know it doesnt show all of the question Please help Link to comment https://forums.phpfreaks.com/topic/116996-echo/ Share on other sites More sharing options...
Wuhtzu Posted July 28, 2008 Share Posted July 28, 2008 I think we need to see more code and / or you to elaborate Link to comment https://forums.phpfreaks.com/topic/116996-echo/#findComment-601691 Share on other sites More sharing options...
papaface Posted July 28, 2008 Share Posted July 28, 2008 try: echo "<input type=\"text\" name=\"question\" size=\"25\" value=\"" . $rows4['question'] . "\">"; Link to comment https://forums.phpfreaks.com/topic/116996-echo/#findComment-601692 Share on other sites More sharing options...
samshel Posted July 28, 2008 Share Posted July 28, 2008 always enclose value attribute in single or double quotes... Link to comment https://forums.phpfreaks.com/topic/116996-echo/#findComment-601697 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.