php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16279 quote problem
Submitted: 2002-03-26 03:25 UTC Modified: 2002-03-26 03:40 UTC
From: fjl at kub dot nl Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: solaris
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fjl at kub dot nl
New email:
PHP Version: OS:

 

 [2002-03-26 03:25 UTC] fjl at kub dot nl
The string 
$xx = 1;
echo "<a href=\"1\" target=\"_blank\" onmouseover=\"moveover\\\"$xx\\\"); return true;\">1</a>";
gives a problem on the second \\\" 
the \\ is shown as a \
the \" is not reproduced as a " where I expect "

I hope this is not a problem in php but it is me.

Frans.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-26 03:28 UTC] fjl at kub dot nl
I made a typo int moveover
should be moveover(
Frans.
 [2002-03-26 03:35 UTC] derick@php.net
user error > bogus
 [2002-03-26 03:40 UTC] mboeren@php.net
For readability, try this for coding style:

$xx = 1;
echo '<a href="1" target="_blank" onmouseover="moveover(\''.$xx.'\'); return true;">1</a>';

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC