Aller au contenu

lemuse

Actif
  • Compteur de contenus

    22
  • Inscrit(e) le

  • Dernière visite

Réputation sur la communauté

1 Neutre
  1. J'ai étudié mais pas encore en détail les 2 solutions, le tuto que tu me conseille Luan, est bien fait et m'a permis de clarifier certaines choses, il conseille un lecteur gérant la playlist, je pense pouvoir l'installer, il y aurait donc un code à ajouter à ma page (après configuration) et le player, et c'est tout je crois... JW Player est tout simplement génial, mais un peu plus délicat à mettre en oeuvre, je pense me faire la main sur le premier, l'appétit vient en mangeant Merci à vous !
  2. Bonsoir, J'ai une vidéo au format .flv diffusée par le player "Unobtrusive Flash Objects (UFO)" bobbyvandersluis.com , j'aurais aimé ajouter une seconde vidéo sur la page, mais un copiez coller du code ne suffit pas J'ai lu qu'il serait possible avec une playlist de faire ca, comment s'y prendre ? La page avec le script: </script> </head> <body> <div id="header"></div><? include("menu.php"); ?> <div id="textegauche"> <h1> Le MPF </h1> <h2>Vidio de prisentation</h2> <script type="text/javascript" src="ufo.js"></script> <p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Installez Flash Player</a> pour voir cette vidio.</p> <script type="text/javascript"> var FO = { movie:"flvplayer.swf",width:"352",height:"240",majorversion:"7",build:"0",bgcolor:"#FFFFFF",allowfullscreen:"true", flashvars:"file=MPF_Pastilles.FLVℑ=preview.jpg" }; UFO.create( FO, "player1"); </script> Le ufo.js : /* Unobtrusive Flash Objects (UFO) v3.21 <http://www.bobbyvandersluis.com/ufo/> Copyright 2005, 2006 Bobby van der Sluis This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/> */ var UFO = { req: ["movie", "width", "height", "majorversion", "build"], opt: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", "bgcolor", "base", "flashvars", "devicefont", "allowscriptaccess", "seamlesstabbing", "allowfullscreen"], optAtt: ["id", "name", "align"], optExc: ["swliveconnect"], ximovie: "ufo.swf", xiwidth: "215", xiheight: "138", ua: navigator.userAgent.toLowerCase(), pluginType: "", fv: [0,0], foList: [], create: function(FO, id) { if (!UFO.uaHas("w3cdom") || UFO.uaHas("ieMac")) return; UFO.getFlashVersion(); UFO.foList[id] = UFO.updateFO(FO); UFO.createCSS("#" + id, "visibility:hidden;"); UFO.domLoad(id); }, updateFO: function(FO) { if (typeof FO.xi != "undefined" && FO.xi == "true") { if (typeof FO.ximovie == "undefined") FO.ximovie = UFO.ximovie; if (typeof FO.xiwidth == "undefined") FO.xiwidth = UFO.xiwidth; if (typeof FO.xiheight == "undefined") FO.xiheight = UFO.xiheight; } FO.mainCalled = false; return FO; }, domLoad: function(id) { var _t = setInterval(function() { if ((document.getElementsByTagName("body")[0] != null || document.body != null) && document.getElementById(id) != null) { UFO.main(id); clearInterval(_t); } }, 250); if (typeof document.addEventListener != "undefined") { document.addEventListener("DOMContentLoaded", function() { UFO.main(id); clearInterval(_t); } , null); // Gecko, Opera 9+ } }, main: function(id) { var _fo = UFO.foList[id]; if (_fo.mainCalled) return; UFO.foList[id].mainCalled = true; document.getElementById(id).style.visibility = "hidden"; if (UFO.hasRequired(id)) { if (UFO.hasFlashVersion(parseInt(_fo.majorversion, 10), parseInt(_fo.build, 10))) { if (typeof _fo.setcontainercss != "undefined" && _fo.setcontainercss == "true") UFO.setContainerCSS(id); UFO.writeSWF(id); } else if (_fo.xi == "true" && UFO.hasFlashVersion(6, 65)) { UFO.createDialog(id); } } document.getElementById(id).style.visibility = "visible"; }, createCSS: function(selector, declaration) { var _h = document.getElementsByTagName("head")[0]; var _s = UFO.createElement("style"); if (!UFO.uaHas("ieWin")) _s.appendChild(document.createTextNode(selector + " {" + declaration + "}")); // bugs in IE/Win _s.setAttribute("type", "text/css"); _s.setAttribute("media", "screen"); _h.appendChild(_s); if (UFO.uaHas("ieWin") && document.styleSheets && document.styleSheets.length > 0) { var _ls = document.styleSheets[document.styleSheets.length - 1]; if (typeof _ls.addRule == "object") _ls.addRule(selector, declaration); } }, setContainerCSS: function(id) { var _fo = UFO.foList[id]; var _w = /%/.test(_fo.width) ? "" : "px"; var _h = /%/.test(_fo.height) ? "" : "px"; UFO.createCSS("#" + id, "width:" + _fo.width + _w +"; height:" + _fo.height + _h +";"); if (_fo.width == "100%") { UFO.createCSS("body", "margin-left:0; margin-right:0; padding-left:0; padding-right:0;"); } if (_fo.height == "100%") { UFO.createCSS("html", "height:100%; overflow:hidden;"); UFO.createCSS("body", "margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;"); } }, createElement: function(el) { return (UFO.uaHas("xml") && typeof document.createElementNS != "undefined") ? document.createElementNS("http://www.w3.org/1999/xhtml", el) : document.createElement(el); }, createObjParam: function(el, aName, aValue) { var _p = UFO.createElement("param"); _p.setAttribute("name", aName); _p.setAttribute("value", aValue); el.appendChild(_p); }, uaHas: function(ft) { var _u = UFO.ua; switch(ft) { case "w3cdom": return (typeof document.getElementById != "undefined" && typeof document.getElementsByTagName != "undefined" && (typeof document.createElement != "undefined" || typeof document.createElementNS != "undefined")); case "xml": var _m = document.getElementsByTagName("meta"); var _l = _m.length; for (var i = 0; i < _l; i++) { if (/content-type/i.test(_m[i].getAttribute("http-equiv")) && /xml/i.test(_m[i].getAttribute("content"))) return true; } return false; case "ieMac": return /msie/.test(_u) && !/opera/.test(_u) && /mac/.test(_u); case "ieWin": return /msie/.test(_u) && !/opera/.test(_u) && /win/.test(_u); case "gecko": return /gecko/.test(_u) && !/applewebkit/.test(_u); case "opera": return /opera/.test(_u); case "safari": return /applewebkit/.test(_u); default: return false; } }, getFlashVersion: function() { if (UFO.fv[0] != 0) return; if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") { UFO.pluginType = "npapi"; var _d = navigator.plugins["Shockwave Flash"].description; if (typeof _d != "undefined") { _d = _d.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); var _m = parseInt(_d.replace(/^(.*)\..*$/, "$1"), 10); var _r = /r/.test(_d) ? parseInt(_d.replace(/^.*r(.*)$/, "$1"), 10) : 0; UFO.fv = [_m, _r]; } } else if (window.ActiveXObject) { UFO.pluginType = "ax"; try { // avoid fp 6 crashes var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); } catch(e) { try { var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); UFO.fv = [6, 0]; _a.AllowScriptAccess = "always"; // throws if fp < 6.47 } catch(e) { if (UFO.fv[0] == 6) return; } try { var _a = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); } catch(e) {} } if (typeof _a == "object") { var _d = _a.GetVariable("$version"); // bugs in fp 6.21/6.23 if (typeof _d != "undefined") { _d = _d.replace(/^\S+\s+(.*)$/, "$1").split(","); UFO.fv = [parseInt(_d[0], 10), parseInt(_d[2], 10)]; } } } }, hasRequired: function(id) { var _l = UFO.req.length; for (var i = 0; i < _l; i++) { if (typeof UFO.foList[id][UFO.req[i]] == "undefined") return false; } return true; }, hasFlashVersion: function(major, release) { return (UFO.fv[0] > major || (UFO.fv[0] == major && UFO.fv[1] >= release)) ? true : false; }, writeSWF: function(id) { var _fo = UFO.foList[id]; var _e = document.getElementById(id); if (UFO.pluginType == "npapi") { if (UFO.uaHas("gecko") || UFO.uaHas("xml")) { while(_e.hasChildNodes()) { _e.removeChild(_e.firstChild); } var _obj = UFO.createElement("object"); _obj.setAttribute("type", "application/x-shockwave-flash"); _obj.setAttribute("data", _fo.movie); _obj.setAttribute("width", _fo.width); _obj.setAttribute("height", _fo.height); var _l = UFO.optAtt.length; for (var i = 0; i < _l; i++) { if (typeof _fo[UFO.optAtt[i]] != "undefined") _obj.setAttribute(UFO.optAtt[i], _fo[UFO.optAtt[i]]); } var _o = UFO.opt.concat(UFO.optExc); var _l = _o.length; for (var i = 0; i < _l; i++) { if (typeof _fo[_o[i]] != "undefined") UFO.createObjParam(_obj, _o[i], _fo[_o[i]]); } _e.appendChild(_obj); } else { var _emb = ""; var _o = UFO.opt.concat(UFO.optAtt).concat(UFO.optExc); var _l = _o.length; for (var i = 0; i < _l; i++) { if (typeof _fo[_o[i]] != "undefined") _emb += ' ' + _o[i] + '="' + _fo[_o[i]] + '"'; } _e.innerHTML = '<embed type="application/x-shockwave-flash" src="' + _fo.movie + '" width="' + _fo.width + '" height="' + _fo.height + '" pluginspage="http://www.macromedia.com/go/getflashplayer"' + _emb + '></embed>'; } } else if (UFO.pluginType == "ax") { var _objAtt = ""; var _l = UFO.optAtt.length; for (var i = 0; i < _l; i++) { if (typeof _fo[UFO.optAtt[i]] != "undefined") _objAtt += ' ' + UFO.optAtt[i] + '="' + _fo[UFO.optAtt[i]] + '"'; } var _objPar = ""; var _l = UFO.opt.length; for (var i = 0; i < _l; i++) { if (typeof _fo[UFO.opt[i]] != "undefined") _objPar += '<param name="' + UFO.opt[i] + '" value="' + _fo[UFO.opt[i]] + '" />'; } var _p = window.location.protocol == "https:" ? "https:" : "http:"; _e.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + _objAtt + ' width="' + _fo.width + '" height="' + _fo.height + '" codebase="' + _p + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + _fo.majorversion + ',0,' + _fo.build + ',0"><param name="movie" value="' + _fo.movie + '" />' + _objPar + '</object>'; } }, createDialog: function(id) { var _fo = UFO.foList[id]; UFO.createCSS("html", "height:100%; overflow:hidden;"); UFO.createCSS("body", "height:100%; overflow:hidden;"); UFO.createCSS("#xi-con", "position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;"); UFO.createCSS("#xi-dia", "position:absolute; left:50%; top:50%; margin-left: -" + Math.round(parseInt(_fo.xiwidth, 10) / 2) + "px; margin-top: -" + Math.round(parseInt(_fo.xiheight, 10) / 2) + "px; width:" + _fo.xiwidth + "px; height:" + _fo.xiheight + "px;"); var _b = document.getElementsByTagName("body")[0]; var _c = UFO.createElement("div"); _c.setAttribute("id", "xi-con"); var _d = UFO.createElement("div"); _d.setAttribute("id", "xi-dia"); _c.appendChild(_d); _b.appendChild(_c); var _mmu = window.location; if (UFO.uaHas("xml") && UFO.uaHas("safari")) { var _mmd = document.getElementsByTagName("title")[0].firstChild.nodeValue = document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0, 47) + " - Flash Player Installation"; } else { var _mmd = document.title = document.title.slice(0, 47) + " - Flash Player Installation"; } var _mmp = UFO.pluginType == "ax" ? "ActiveX" : "PlugIn"; var _uc = typeof _fo.xiurlcancel != "undefined" ? "&xiUrlCancel=" + _fo.xiurlcancel : ""; var _uf = typeof _fo.xiurlfailed != "undefined" ? "&xiUrlFailed=" + _fo.xiurlfailed : ""; UFO.foList["xi-dia"] = { movie:_fo.ximovie, width:_fo.xiwidth, height:_fo.xiheight, majorversion:"6", build:"65", flashvars:"MMredirectURL=" + _mmu + "&MMplayerType=" + _mmp + "&MMdoctitle=" + _mmd + _uc + _uf }; UFO.writeSWF("xi-dia"); }, expressInstallCallback: function() { var _b = document.getElementsByTagName("body")[0]; var _c = document.getElementById("xi-con"); _b.removeChild(_c); UFO.createCSS("body", "height:auto; overflow:auto;"); UFO.createCSS("html", "height:auto; overflow:auto;"); }, cleanupIELeaks: function() { var _o = document.getElementsByTagName("object"); var _l = _o.length for (var i = 0; i < _l; i++) { _o[i].style.display = "none"; for (var x in _o[i]) { if (typeof _o[i][x] == "function") { _o[i][x] = null; } } } } }; if (typeof window.attachEvent != "undefined" && UFO.uaHas("ieWin")) { window.attachEvent("onunload", UFO.cleanupIELeaks); } Déja merci.
  3. lemuse

    Calcul panier

    Alors voila, Luan a trouvé la solution au problème, ici, un copier coller de celle ci : Encore merci pour la solution et ton jusqu'au-boutisme, c'est rassurant de rencontrer et d'échanger de cette façon +
  4. lemuse

    Calcul panier

    Hello Luan, Les erreurs : Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/museed/public_html/artotheque/panier.php on line 98 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/museed/public_html/artotheque/panier.php on line 98 et la ligne : " \nalt=\"". +
  5. lemuse

    Calcul panier

    Cette fois il n'y a plus rien si ce n'est : Parse error: syntax error, unexpected T_IF in /home/museed/public_html/artotheque/panier.php on line 93 La ligne 93, toujours la même : if($ligne_image = mysql_fetch_array(mysql_query($selection_image))) On tire sur l'écheveau là
  6. lemuse

    Calcul panier

    J'ai essayé ta correction, mais j'ai cette erreur qui se répète à chaque suppression, le positif est que le compteur s'affiche en tenant compte des suppressions cette fois .. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/museed/public_html/artotheque/panier.php on line 94 La ligne incriminée : if($ligne_image = mysql_fetch_array(mysql_query($selection_image))) Merci de me consacrer de ton temps
  7. lemuse

    Calcul panier

    Bien sur Luan, voila : <? session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="stylesheet" type="text/css" href="artotheque.css" /> <style type="text/css"> <!-- body { background-image: none; margin: 20px; } td { background-color: #EFDABD; padding: 2px; vertical-align: top; } --> </style> </head> <body> <h1>Votre panier</h1> <? if(isset($_GET["del_panier"])) { $nombre_oeuvres = count($_SESSION["tableau_panier"]); $oeuvre_a_supprimer = $_GET["del_panier"]; $occurence = 0; while($occurence < $nombre_oeuvres) { if($_SESSION["tableau_panier"][$occurence]==$oeuvre_a_supprimer) { $_SESSION["tableau_panier"][$occurence]="effacé"; } $occurence++; } } ?> <p style="font-weight: bold;"> Cette oeuvre est effacée du panier. </p> <meta http-equiv="refresh" content="3;http://www.monsite/artotheque/panier.php" /> </body> </html>
  8. lemuse

    Calcul panier

    Bonsoir, un dernier soucis dans l'artotheque, le calcul du nombre des uvres dans le panier ne tient pas compte si il y a eu un effacement, elle n'apparait plus "physiquement" (image, description) mais est toujours comptabilisée, je ne comprend pas bien ce code .. Le panier: <? $occurence = 0; $verif_existe = 0; $nombre_oeuvres = count($_SESSION["tableau_panier"]); while($occurence < $nombre_oeuvres) { $id_oeuvre = $_SESSION["tableau_panier"][$occurence]; if($id_oeuvre!="effacé") { $verif_existe = 1; } $occurence++; } if(isset($_SESSION["tableau_panier"]) AND $_SESSION["occurence_panier"]>0 AND $verif_existe == 1) { echo "<table summary=\"Contenu de votre panier\">\n" ; echo "<tr>\n" ; echo "<td>\n" ; echo "Image\n" ; echo "</td>\n" ; echo "<td>\n" ; echo "Opération\n" ; echo "</td>\n" ; echo "</tr>" ; include("connect.php"); //Effacer une oeuvre du panier. $occurence = 0; while($occurence < $nombre_oeuvres) { $id_oeuvre = $_SESSION["tableau_panier"][$occurence]; if($id_oeuvre!="effacé") { $selection_image = "SELECT * FROM mpf_fr_img "; $selection_image .= "WHERE id_img = $id_oeuvre"; if($ligne_image = mysql_fetch_array(mysql_query($selection_image))) { echo "<tr>\n" ; echo "<td>\n" ; echo"<img src=\"../images/expo/".$ligne_image["nom_img"]."\" \nalt=\"". $ligne_image["nom_oeuvre"]."\" \nclass=\"miniature\" \nid=\"id_". $ligne_image["nom_img"]."\" \nonclick=\"javascript: ouvrirPopup(".$ligne_image['id_img'].");\" />\n"; echo "</td>\n" ; echo "<td style=\"text-align: center; padding-top: 20px;\">\n" ; echo "<input type=\"button\" value=\"Supprimer\" onclick=\"location.href='effacer_oeuvre.php?del_panier=".$id_oeuvre."';\" />" ; echo "</td>\n" ; echo "</tr>" ; } } $occurence++; } if($verif_existe == 1) { //Calcul du nombre d'oeuvres dans le panier. $nombre_occurences = count($_SESSION["tableau_panier"]); $occurence = 0; $oeuvres = 0; while($occurence < $nombre_occurences) { if($_SESSION["tableau_panier"]!="effacé") { $oeuvres++; } $occurence++; } echo "\n<tr>\n" ; echo "<td class=\"commentaire\">\n" ; echo "<p>Votre panier contient ".$oeuvres." oeuvre(s). Le tarif pour ce nombre d'oeuvres est de :</p>" ; switch($oeuvres) { case $oeuvres >= 30 : $tarif = "<p>x/pièce par an | x/pièce pour 6 mois | x/pièce pour 3mois</p>"; break; case $oeuvres >= 20 : $tarif = "<p>x/pièce par an | 9/pièce pour 6 mois | x/pièce pour 3mois</p>"; break; case $oeuvres >= 10 : $tarif = "<p>x/pièce par an | 12/pièce pour 6 mois | x/pièce pour 3mois</p>"; break; case $oeuvres < 10 : $tarif = "<p>x/pièce par an | 15/pièce pour 6 mois | x/pièce pour 3mois</p>"; break; } echo $tarif; echo "</td>\n" ; echo "<td>\n" ; echo "</td>\n" ; echo "\n" ; echo "</tr>\n" ; echo "<tr>\n" ; echo "<td>\n" ; echo " \n" ; echo "</td>\n" ; echo "<td>\n" ; echo "<input type=\"button\" value=\"Envoyer la commande\" onclick=\"location.href='envoi_commande.php'\" />\n" ; echo "</td>\n" ; echo "\n" ; echo "</tr>\n" ; echo "</table>\n" ; } } else { echo "<p style=\"font-weight: bold;\">Votre panier est actuellement vide.</p>" ; } ?> Merci déja.
  9. Voila, cette solution fonctionne : <meta http-equiv="refresh" content="3;http://ma page a rafraichir" /> .. et merci pour la piste
  10. Hello Jacques, l'explication sur le couple sleep et header est maintenant claire. Je vais essayer de mettre en œuvre tes deux options, je suppose qu'elle doivent être installée dans ce même formulaire, à la suite de mon message ? Étant noob en ce domaine et afin de gagner du temps, pourrais tu m'indiquer la syntaxe exacte de ta seconde option ? Bonne journée. Jean-Michel. Je viens d'essayer ceci, mais c'est mal écrit je pense: <p style="font-weight: bold;"> Cette oeuvre est effacée du panier. </p> <script type="text/javascript"> function Refresh: 3:url='http://www.museedupetitformat.be/artotheque/panier.php'; </script>
  11. lemuse

    sleep + header

    Bonjour, j'ai un soucis avec ce code, j'aimerais un délai d'affichage de 2 secondes comme indiqué de "Cette oeuvre est effacée du panier", mais j'ai aussi une erreur qui s'affiche. Le code pour effacer le panier : <? session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="stylesheet" type="text/css" href="artotheque.css" /> <style type="text/css"> <!-- body { background-image: none; margin: 20px; } td { background-color: #EFDABD; padding: 2px; vertical-align: top; } --> </style> </head> <body> <h1>Votre panier</h1> <? if(isset($_GET["del_panier"])) { $nombre_oeuvres = count($_SESSION["tableau_panier"]); $oeuvre_a_supprimer = $_GET["del_panier"]; $occurence = 0; while($occurence < $nombre_oeuvres) { if($_SESSION["tableau_panier"][$occurence]==$oeuvre_a_supprimer) { $_SESSION["tableau_panier"][$occurence]="effacé"; } $occurence++; } } ?> <p style="font-weight: bold;"> Cette oeuvre est effacée du panier. </p> <? sleep(2); header("Location: panier.php"); ?> </body> </html> .. et l'erreur : Warning: Cannot modify header information - headers already sent by output started at home ... Après recherche il apparait qu'il ne doit pas y avoir d'html avant le header et je pensais avoir trouvé la solution avec ceci : <?php ob_start(); ?> <? session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="stylesheet" type="text/css" href="artotheque.css" /> <style type="text/css"> <!-- body { background-image: none; margin: 20px; } td { background-color: #EFDABD; padding: 2px; vertical-align: top; } --> </style> </head> <body> <h1>Votre panier</h1> <? if(isset($_GET["del_panier"])) { $nombre_oeuvres = count($_SESSION["tableau_panier"]); $oeuvre_a_supprimer = $_GET["del_panier"]; $occurence = 0; while($occurence < $nombre_oeuvres) { if($_SESSION["tableau_panier"][$occurence]==$oeuvre_a_supprimer) { $_SESSION["tableau_panier"][$occurence]="effacé"; } $occurence++; } } ?> <p style="font-weight: bold;"> Cette oeuvre est effacée du panier. </p> <? sleep(2); ?> <?php header("Location: panier.php"); ob_flush(); ?> </body> </html> L'erreur est disparue, mais pas de petit message, ce n'est pas super génant, mais je me demande si ce n'est pas ca qui entraine une erreur dans le calcul des uvre(s) restant dans le panier. Il y a peut etre une solution javascript ? j'en ai tenté une mais sans succès, la temporisation de l'affichage n'est pas respectée, quel que soit le temps imposé. Merci de vos conseils.
  12. Génial ! Si tu savais la tension qui vient de s'évacuer d'un coup ! Merci à toi, merci à tous, je vais pouvoir m'attaquer à un système tel que recommandé par paolo, en attendant le livre refonctionne, super ! +
  13. Je pense bien que oui, d'ailleurs la page du formulaire s'affiche correctement avec tout les champs, j'ai d'ailleurs changer l'extension de ce formulaire en .php, il était en .htm, mais aucun changement. Page d'insertion dans le livre d'or .
  14. Il me semble que si .. nom* :<br /> <input type="text" name="nom" /><br /><br /> mail :<br /> <input type="text" name="mail" id="mail" /><br /><br /> commentaire* :<br /> <textarea name="commentaire"></textarea><br /><br /> .
  15. Salut captain_torche, voila mon formulaire : <?php $cryptinstall="./crypt/cryptographp.fct.php"; include $cryptinstall; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Formulaire Livre d'or</title> <meta name="description" content=""> <meta name="keywords" content=""> <meta lang="fr" content=""> <meta http-equiv="imagetoolbar" content="no"> <style type="text/css"> <!-- _AT_import url("global.css"); body { background-image: url("signer.jpg"); margin: 8px; color: #ffffff; font-weight: bold; } input { font-family: verdana; font-weight: bold; font-size: 8pt; color: #563B17; border: 1px #563B17 solid; } textarea { font-family: verdana; font-weight: bold; font-size: 8pt; color: #563B17; border: 1px #563B17 solid; width: 320px; height: 100px; } form { margin-left: 12px; } h2 { margin-bottom: 40px; } .commentaire { font-size: 8pt; } --> </style> <script language="JavaScript" type="text/javascript"> <!-- function verifMail() { var regExp1 = new RegExp ("[\\w+\-\.]@[\\w+\-]"); var valeurMail = document.getElementById("mail").value; if(valeurMail!="") { if(valeurMail.search(regExp1)==-1) { alert("Veuillez entrer une adresse mail valide ou ne pas en entrer."); return false; } } } //--> </script> </head> <body> <h1 style="margin-bottom: 60px;">Signez le livre d'or</h1> <h2>Remplissez le formulaire.</h2> nom* :<br /> <input type="text" name="nom" /><br /><br /> mail :<br /> <input type="text" name="mail" id="mail" /><br /><br /> commentaire* :<br /> <textarea name="commentaire"></textarea><br /><br /> <form action="send_lo.php" method="post" onsubmit="javascript: return verifMail();"> <table> <tr><td><?php dsp_crypt(0,1); ?></td></tr> <tr><td>Recopier le code:<input type="text" name="code"></td></tr> <tr><td><input type="submit" name="submit" value="Envoyer"></td></tr> </table> <p class="commentaire">* Seuls les champs nom et commentaire doivent obligatoirement être remplis...</p> </form> </body> </html> .
×
×
  • Créer...