Probleme script php
h3llone
-
prosthetiks Messages postés 1189 Date d'inscription Statut Membre Dernière intervention -
prosthetiks Messages postés 1189 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
Il y a une erreur a la ligne 96 mais je ne suis que un debutant da le php et je souhaiterai savoir comme resoudre ce probleme.
Merci d 'avance.
voici le script:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Bienvenue sur mon site !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#conteneur {
width: 800px;
background: #4100F4;
margin:auto;
}
#onglethaut{
height:30px;
background:#000000;
}
#haut {
height: 200px;
background: #20BF00;
padding:10px;
}
#gauche{
height: 722px;
width:150px;
background:#40A497;
float:left;
}
#droit{
height: 722px;
background:#40A497;
float:right;
}
#millieu{
height: 800px;
background:477B76;
}
#gauche a {
display:block;
background:#E3F400;
margin-right:5px;
padding:5px;
float:left;
text-align:center;
}
#gauche a:hover {
border-top:3px outset #4100F4;
}
#accueil,
#demonstrations,
#newsleter,
#contact {
display:none;
}
</style>
</head>
<body>
<div id="conteneur">
<div id="haut">
</div>
<div id="gauche">
<br><a href="?contenu=accueil" class="actif"> acceuil</a></br><br></br>
<br><a href="?contenu=demonstrations" class="actif"> demonstrations</a></br><br></br>
<br><a href="?contenu=newsleter" class="actif"> newsleter</a></br><br></br>
<br><a href="?contenu=contact" class="actif"> contact</a></br><br></br>
</div>
<div id="droit">
droit de la page
</div>
<div id="millieu">
<?php
$contenu = $_GET["contenu"];
if($contenu == "accueil")
{
echo'
<h3>bienvenue</h3>';
}
elseif($contenu == "demonstrations")
{
echo "liste des demonstrations";
}
elseif($contenu == "newsleter")
{
echo '
<br>Nom</br>
<input type="text" name="Nom"/><br></br>
<br>Prénom</br>
<input type="text" name="Prénom"/><br></br>
<br>Pseudo*</br>
<input type="text" name="Pseudo"/><br></br>
<br>E-mail</br>
<input type="text" name="E-mail"/><br></br>
<input type="submit" value="S\'inscrire"
</form>
</div>' ; }
elseif($contenu == "contact")
{
echo 'contacter moi!';
}
else
{
echo 'Erreur';}
?>
<br></br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</body>
</html>
Il y a une erreur a la ligne 96 mais je ne suis que un debutant da le php et je souhaiterai savoir comme resoudre ce probleme.
Merci d 'avance.
voici le script:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Bienvenue sur mon site !</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#conteneur {
width: 800px;
background: #4100F4;
margin:auto;
}
#onglethaut{
height:30px;
background:#000000;
}
#haut {
height: 200px;
background: #20BF00;
padding:10px;
}
#gauche{
height: 722px;
width:150px;
background:#40A497;
float:left;
}
#droit{
height: 722px;
background:#40A497;
float:right;
}
#millieu{
height: 800px;
background:477B76;
}
#gauche a {
display:block;
background:#E3F400;
margin-right:5px;
padding:5px;
float:left;
text-align:center;
}
#gauche a:hover {
border-top:3px outset #4100F4;
}
#accueil,
#demonstrations,
#newsleter,
#contact {
display:none;
}
</style>
</head>
<body>
<div id="conteneur">
<div id="haut">
</div>
<div id="gauche">
<br><a href="?contenu=accueil" class="actif"> acceuil</a></br><br></br>
<br><a href="?contenu=demonstrations" class="actif"> demonstrations</a></br><br></br>
<br><a href="?contenu=newsleter" class="actif"> newsleter</a></br><br></br>
<br><a href="?contenu=contact" class="actif"> contact</a></br><br></br>
</div>
<div id="droit">
droit de la page
</div>
<div id="millieu">
<?php
$contenu = $_GET["contenu"];
if($contenu == "accueil")
{
echo'
<h3>bienvenue</h3>';
}
elseif($contenu == "demonstrations")
{
echo "liste des demonstrations";
}
elseif($contenu == "newsleter")
{
echo '
<br>Nom</br>
<input type="text" name="Nom"/><br></br>
<br>Prénom</br>
<input type="text" name="Prénom"/><br></br>
<br>Pseudo*</br>
<input type="text" name="Pseudo"/><br></br>
<br>E-mail</br>
<input type="text" name="E-mail"/><br></br>
<input type="submit" value="S\'inscrire"
</form>
</div>' ; }
elseif($contenu == "contact")
{
echo 'contacter moi!';
}
else
{
echo 'Erreur';}
?>
<br></br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</body>
</html>
A voir également:
- Probleme script php
- Script vidéo youtube - Guide
- Easy php - Télécharger - Divers Web & Internet
- Mas script - Accueil - Windows
- Ghost script - Télécharger - Polices de caractères
- Expert php pinterest - Télécharger - Langages