par
Gyl » 10 févr. 2023, 14:07
Je viens de copier le code source php directement de Brackets dans la fenêtre d'édition :
<?
setcookie('essai','123456');
echo $_COOKIE['essai'];
?>
<HTML>
<BODY>
<section><div style="text-align:center; height:30px; background:yellow; color:black;">
<?php
echo 'Et donc... ';
echo $_COOKIE['essai'];
?>
</div> </section>
</BODY>
</HTML>
et le code source html relevé dans Chrome :
<?
setcookie('essai','123456');
echo $_COOKIE['essai'];
?>
<HTML>
<BODY>
<section><div style="text-align:center; height:30px; background:yellow; color:black;">
Et donc... <br />
<b>Warning</b>: Undefined array key "essai" in <b>/Users/stardancer/Sites/therapies-nature.online/essai.php</b> on line <b>12</b><br />
</div> </section>
</BODY>
</HTML>
Je ne peux pas faire mieux, je n'arrive pas à voir la différence avec le 1er message !
Je viens de copier le code source php directement de Brackets dans la fenêtre d'édition :
[html]<?
setcookie('essai','123456');
echo $_COOKIE['essai'];
?>
<HTML>
<BODY>
<section><div style="text-align:center; height:30px; background:yellow; color:black;">
<?php
echo 'Et donc... ';
echo $_COOKIE['essai'];
?>
</div> </section>
</BODY>
</HTML>[/html]
et le code source html relevé dans Chrome :
[html]<?
setcookie('essai','123456');
echo $_COOKIE['essai'];
?>
<HTML>
<BODY>
<section><div style="text-align:center; height:30px; background:yellow; color:black;">
Et donc... <br />
<b>Warning</b>: Undefined array key "essai" in <b>/Users/stardancer/Sites/therapies-nature.online/essai.php</b> on line <b>12</b><br />
</div> </section>
</BODY>
</HTML>[/html]
Je ne peux pas faire mieux, je n'arrive pas à voir la différence avec le 1er message !