Page précédente | Page suivante | Page : 1

problème header
Hors ligne Carroteman Le 20/08/2007 à 11:38 Profil de Carroteman Configuration de Carroteman
J'ai crée un script d'inscription qui se présente ainsi :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<a class="lb" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"></a>
<html xmlns="<a class="lb" href="http://www.w3.org/1999/xhtml"">http://www.w3.org/1999/xhtml"</a> xml:lang="fr" lang="fr">
    <head>
        <title>Banniere</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
          <link rel="stylesheet" media="screen" type="text/css" title="design_forum" href="css_forum.css" />
          </head>
    <body>
........... XHTML du forumulaire ....

Une vérification d'inscription a été mis en place afin d'éviter les inscriptions automatiques par les bots par exemple. Vous devez ainsi rentrer le code inscri sur l'image dans la case en dessous. Si vous êtes déficient, veuillez me contactez <strong><a href="mailto:carroteman@gmail.com">en cliquant ici</strong></a><br />
     <?php
     header
('Content-type: image/jpeg');

     $image imagecreate(20050);
     $fade imagecolorallocate($image2112170);
     $red imagecolorallocate($image1733375);
     $green imagecolorallocate($image9013978);
     $blue imagecolorallocate($image10691191);
     $array = array('d'86'z''r''s'7'p'1'q'4'a'9'o'1'n''b''v');
     imagestring($image52517$array[mt_rand(017)], $green);
     imagestring($image55017$array[mt_rand(017)], $red);
     imagestring($image510517$array[mt_rand(017)], $blue);
     imagestring($image514017$array[mt_rand(017)], $green);
     imagestring($image518017$array[mt_rand(017)], $red);
     imagejpeg($image);
     ?>
</body>
</html>


Bien entendu un message d'erreur puisque je change l'header aprés affichage d'au moin un caractère, comment pourrais-je faire pour afficher limage au lieu de l'erreur?
Hors ligne Anthony Le 21/08/2007 à 12:36 Profil de Anthony Configuration de Anthony
Fou du volant
Salut,

FAQ PHP

a +
--

Page précédente | Page suivante | Page : 1

Aide informatique | Communauté d'entraide informatique | Aide informatique | Forum d'assistance informatique | Forum-Vista | Formation informatique | Forum Informatique | Devenir partenaire