Mój pierwszy problem polega na tym, że nie mogę utworzyć nowej lini w zdaniu, które jest przechowywane w stringu. Tzn.
Kod
$opis_main_menu = 'Pierwsza linia\nDruga linia!';
Próbowałem wszystkiego co mi przychodziło do głowy, lecz nic.
Na stronie wyświetlam to używając:
Kod
<?php echo htmlentities($opis_main_menu) ?>
Drugi problem polega na tym, że mam menu, w których formularz kontaktowy używa JavaScript,ecz, w treści strony używam też JS do wyświetlania obrazka.
Problem jest w tym, że gdy mam ten obrazek na JavaScript, to nie chodzi to menu tak jak powinno tzn. nie ma tego efektu wyświetla poprostu pustą strone z informacją.
Zresztą sami sprawdzcie w menu i na Contact na http://beauty-4u.co.uk/index.php i dajcie Submit, a potem wejdźcie Hair Extension > Micro Ring > Read More, tam już nie działa jak należy.
W micro_ring.php mam tak:
Kod
<?PHP
include('menu.html');
// w menu.html jest
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="megamenu.css" type="text/css" media="screen" /><!-- Menu -->
<script type="text/javascript" src="form/jquery.js"></script>
<script type="text/javascript" src="form/jquery.form.js"></script>
// itd.
?>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<center><a href="<?php echo htmlentities($img_micro_ring)?>" rel="lightbox"><img src="<?php echo htmlentities($img_micro_ring)?>" rel="lightbox" alt="Micro Ring" width="200" height="200" border="5" /></a>
include('menu.html');
// w menu.html jest
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="megamenu.css" type="text/css" media="screen" /><!-- Menu -->
<script type="text/javascript" src="form/jquery.js"></script>
<script type="text/javascript" src="form/jquery.form.js"></script>
// itd.
?>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript"></script>
<center><a href="<?php echo htmlentities($img_micro_ring)?>" rel="lightbox"><img src="<?php echo htmlentities($img_micro_ring)?>" rel="lightbox" alt="Micro Ring" width="200" height="200" border="5" /></a>
Proszę was bardzo o pomoc.
Pozdrawiam