salut tous le monde,
Je veux intégrer du JVscript en php mais je sais pas comment, j'ai essayé avec :
mais ça me retourne cette erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 if($validation == "validé"){ echo"<script language="JavaScript"> setTimeout("window.location='http://localhost/projet/validé.html '",1000);</script>";} else{ echo" <script language="JavaScript">setTimeout("window.location='http://localhost/projet/nonvalidé.html '",1000);</script>";}
sachant que la ligne 94 est la ligne associé au premier echo
Code : Sélectionner tout - Visualiser dans une fenêtre à part Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\wamp\www\projet\validation.php on line 94
Partager