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
 [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: Tue Dec 03 14:01:30 2024 UTC