Reply to $_SESSION array goes blind when inserting <img src=""> into it

Your name:

Reply:


Posted by Joey33 on 06/29/07 09:45

Hello to all people of good will,

On one page I insert into $_SESSION at 'mykey' a value:

<div onclick="parent.load_pic()" id="foto_0"><img alt="image" src=""/
></div>

It comes from a form and is assigned as usual:
$_SESSION['mykey']=$the_above_long_string

And on another page when I start the session and try to read the
$_SESSION array the $_SESSION['mykey'] is empty.

All the other values set elsewhere are right there in $_SESSION array.

I tried addslashes(), htmlentities() but nothing works. To my surprise
it doesn't work in FF, in IE it's ok.

I also discovered that SRC="" attribute is the problem, when I skip it
or misspell it, everything works fine.

Any idea? Thanks in advance,
Joey_33

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация