php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14203 Passing variables with issues
Submitted: 2001-11-23 21:16 UTC Modified: 2001-11-23 23:07 UTC
From: eduardo_samg at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.6 OS: windows xp
Private report: No CVE-ID: None
 [2001-11-23 21:16 UTC] eduardo_samg at hotmail dot com
#when i try to set a default value to a text box like this:

<html>
<head></head>
<body>


<?php

$s="hello world";
echo "<input type='text'  value=$s"; 
?>

</body>
</html>


# this works but in the text box only apears the word 'hello' , all that is after the space is ignored, why?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-23 23:07 UTC] mfischer@php.net
Please ask support questions at php-general@lists.php.net.

Bogus.

Ps: you want to use quotes around $s.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 00:01:31 2024 UTC