slt
voila un petit truc qui m’arrive et j’avoue y perdre mon latin
j’au lien sur ma page :
index.php?r=panier&<?php echo strip_tags(SID); ?>
jusque l’a rien d’anormal
mais en mettant sur un mutualise sur ovh voici le resultat :
index.php?r=panier&PHPSESSID=a173fe54fff8f93da4316598002a383f&PHPSESSID=a173fe54fff8f93da4316598002a383f
et si je ne met que cela :
index.php?r=panier
voici le resultat :
index.php?r=panier&PHPSESSID=a173fe54fff8f93da4316598002a383f
et le & n’etant pas code avec & ne passe pas
comment puis je l’avoir dans le lien si dans mon code je ne le specifie pas est ce la config php de ovh ?
config de ovh : http://90plan.ovh.net/test.php
voici le resultat :
il le met deux fois ??
une solution ?
je ne passe pas le w3c validor a cause de cela pas bien genant mais bon j’ai deja valide tout le site en css j’aurai aime finalise aussi le reste
autre point pour passer ma valeur de l’id session dans un swf j’utilise cela
[cpp]
<object type=“application/x-shockwave-flash” data=“menu2.swf<?php echo "?PHPSESSID=".utf8_encode(urlencode(session_id())).""; ?>” width=“250” height=“485”>
<param name=“movie” value=“menu2.swf<?php echo "?PHPSESSID=".utf8_encode(urlencode(session_id())).""; ?>” />
[/cpp]
et la j’ai bien la session correct qui passe dans le menu du swf
dans mon animation flash je recupere bien l’id et quand je clique sur un lien du menu flash l’id est bien presente dans l’url
y aurai t il une incidence sur mes erreurs ?
resultat du validator :
Errors: 4
[cpp] 1.
Line 44, column 93: cannot generate system identifier for general entity "PHPSESSID"
...SID=93e832ff0445e35b70ad40c69e84b3ac&PHPSESSID=93e832ff0445e35b70ad40c69e84b3
An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
✉
Line 44, column 93: general entity "PHPSESSID" not defined and no default entity
...SID=93e832ff0445e35b70ad40c69e84b3ac&PHPSESSID=93e832ff0445e35b70ad40c69e84b3
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
✉
Line 44, column 102: reference to entity "PHPSESSID" for which no system identifier could be generated
...2ff0445e35b70ad40c69e84b3ac&PHPSESSID=93e832ff0445e35b70ad40c69e84b3ac" title
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
✉
Line 44, column 92: entity was defined here
...SSID=93e832ff0445e35b70ad40c69e84b3ac&PHPSESSID=93e832ff0445e35b70ad40c69e84b
[/cpp]