ICI header("Location: http://www.mytesting.fr ");

COMMENT INTEGRER UN FORMULAIRE DE CONTACT SUR VOTRE BLOG.

par André MARINI 17 Décembre 2015, 11:51 sites et blogs

Dans la mesure où votre identifiant de connection est votre adresse e.mail, vous pouvez créer un formulaire de contact qui n'indique pas cette adresse.

 

Vous recevrez les messages dans votre boite mail.

 

Dans ce cas, votre correspondant ne passera pas par sa propre boite mais viendra directement sur votre site.

 

Ce code fait intervenir du HTML en bleu

du CSS en marron

et du JAVASCRIPT en vert

 

CODE

<div class="clear" style="text-align: center;"><strong>Les champs marqu&eacute;s d&#39;un ast&eacute;risque sont obligatoires.</strong></div>


<div class="ln" id="ln_2">
<div class="clear">&nbsp;</div>
</div>



<div id="legals" style="visibility:visible!important; display:block !important; height:auto!important; width:100%!important; text-align:center!important; clear:both;">- <a href="/contact" style="visibility:visible!important; display:inline!important; height:auto!important; width:auto!important;">CONTACT</a> -<!--<a href="#" rel="nofollow"
        style="visibility:visible!important; display:inline!important; height:auto!important; width:auto!important;">
        {{ Lang.Get('Report abuse') }}

    </a>--></div>
<script type="text/javascript"> 
function disableSelection(target) { 
        if (typeof target.onselectstart != "undefined") 
            target.onselectstart = function () { return false } 
        else if (typeof target.style.MozUserSelect != "undefined") 
            target.style.MozUserSelect = "none" 
        else 
            target.onmousedown = function () { return false } 
        target.style.cursor = "default" 
    } 
   disableSelection(document.body) 
</script>

 

RESULTAT

Les champs marqués d'un astérisque sont obligatoires.
 

Les essais se font ci-dessus et non en-dessous où se trouve l'image fixe de la page qui s'ouvre lorsqu'on clique sur "contact".

IMAGE OBTENUE

 

Voici l'image de ce qui sera obtenu en cliquant sur la formule "contact"

 

Haut de page