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

Add a Patch

Pull Requests

Add a Pull Request

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-2023 The PHP Group
All rights reserved.
Last updated: Sun Mar 26 00:03:53 2023 UTC