Re: Re: strange string handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Maciek Sokolewicz <maciek.sokolewicz@xxxxxxxxx> hat am 5. November 2013 um
> 13:32 geschrieben:
>
>
> On 5-11-2013 13:20, georg chambert wrote:
> > this is for me quite strange, what is happening; I have a sentence which
> > gets corrupted when
> >
> > using a string variable, while work when using a fixed string (the fck
> > part), and totally messes up when string variable
> >
> > (there are instances where "  '  "  are used while these are very compacted
> > in the shown )
> >
> > ------- in my php
> >
> > echo "<A href=head_show.html?Disp_head=" . urlencode($nxt_head_name) .
> > "&Row_no=" .$row_no. ">" ;
> >
> > //echo "<img src='" . $img_sub_dir . $disp_head_name . "'" . " align='left'
> > > </img> </A> ";
> >
> > echo "<img src='" . $img_sub_dir . "fck". "'" . " align='left' > </img> </A>
> > ";
> >
> > -----
> >
> > the generated text as shown by browser  in the first case, when running the
> >
> > // - away commented above, having seconnd awaycommented instead
> >
> > <a href="head_show.html?Disp_head=gaffer1.jpg&Row_no=1">
> >
> >      <img align="left" heads3c.jpg''="" src="/WEP/heads/"></img>
> >
> > </a>
> >
>
> I'm sorry, but that output is impossible based on the code you provided
> above. Your case is different, your attributes are in a completely
> different order, etc. There are only 2 reasons why this might happen:
> 1. You posted different code than you actually ran.
> 2. Your browser changes the HTML before you see it.

I guess this html snippet is copy/pasted from firebug or chrome console. Use
"view source" instead, which is the raw response from the server. Don't look at
the generated source.

>
> Fix both, and show us again.
> - Tul
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: marco@xxxxxxxxxx

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux