php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44610 inputbox bug
Submitted: 2008-04-02 13:44 UTC Modified: 2008-04-02 18:50 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ricardo dot jorge86 at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2CVS-2008-04-02 (CVS) OS: XP
Private report: No CVE-ID: None
 [2008-04-02 13:44 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-02 18:40 UTC] josh at brink dot com
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.
 [2008-04-02 18:50 UTC] felipe@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 16:01:30 2024 UTC