ID:               44610
 Comment by:       josh at brink dot com
 Reported By:      ricardo dot jorge86 at gmail dot com
 Status:           Open
 Bug Type:         *General Issues
 Operating System: XP
 PHP Version:      5.2CVS-2008-04-02 (CVS)
 New Comment:

You put:

<?php

print ("<input type='text' value="any text" name='anytext'">);
?>

I think you are trying to do this:

<?php

print ("<input type='text' value='any text' name='anytext'">);
?>

Use of double quotes breaks apart the string.


Previous Comments:
------------------------------------------------------------------------

[2008-04-02 13:44:16] ricardo dot jorge86 at gmail dot com

Description:
------------
text including spaces placed in an input text control in HTML show the
whole text.

text including spaces placed in an input text control in PHP does not
show the whole text, only the first word up to the first space is
displayed. The same happens with variables from a BD.


Reproduce code:
---------------
<?php

print ("<input type='text' value="any text" name='anytext'">);
?>


Expected result:
----------------
inside the text box:

any text

Actual result:
--------------
inside the text box:

any


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44610&edit=1

Reply via email to