je n'arrive pas à mettre une page en PHP sur mon site
Dernière réponse : dans Programmation
Bonjour à tous,
je débute en PHP j'ai créé un site en html et j'essayé de mettre une page en PHP (monsite/mapage.php) mais quand je l'ouvre, le navigateur me propose de télécharger
le fichier PHP au lieu de l'ouvrir comme pour une page html.
Comment faut-il que je fasse pour que cette page s'ouvre normalement ?
Merci d'avance pour vos réponses
mon site: http://musiquefrance.idoo.com
je débute en PHP j'ai créé un site en html et j'essayé de mettre une page en PHP (monsite/mapage.php) mais quand je l'ouvre, le navigateur me propose de télécharger
le fichier PHP au lieu de l'ouvrir comme pour une page html.Comment faut-il que je fasse pour que cette page s'ouvre normalement ?
Merci d'avance pour vos réponses
mon site: http://musiquefrance.idoo.com
Autres pages sur : arrive mettre page php site
Lassé par la pub ? Créez un compte
Merci
Voila le script que j'ai mis qu'elle sont les erreurs ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Musique france</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_entertainment.css" type="text/css" />
</head>
<body bgcolor="#14285f">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="02021e">
<td width="400" colspan="2" rowspan="2" nowrap="nowrap"><img src="mm_entertainment_image.jpg" alt="Header image" width="400" height="140" border="0" /></td>
<td width="360" height="58" nowrap="nowrap" colspan="2" id="logo" valign="bottom">MUSIQUE FRANCE </td>
<td width="100%"> </td>
</tr>
<tr bgcolor="02021E">
<td height="57" nowrap="nowrap" colspan="2" id="tagline" valign="top">http://musiquefrance.idoo.com<br /> </td>
<td width="100%"> </td>
</tr>
<tr>
<td colspan="5" bgcolor="#cc3300"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="5"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="5" bgcolor="#cc3300"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td colspan="5" id="dateformat"> <br />
<a href="index.html">< RETOUR </a><br /> </td>
</tr>
<tr>
<td width="156" valign="top"> </td>
<td colspan="2" valign="top"><form name="ajout" method="post" action="#">
Titre : <br />
<input type="text" name="titre" id="titre" /><br />
Texte : <br />
<textarea name="texte" id="texte"></textarea>
<br />
<input type="submit" value="Valider" name="valider"/>
</from>
<?php
if ($_POST['valider'] == "Valider")
{
$conexion =
mysql connect ("10.0.5.29","i94285","J'AIS ENLEVER MON MOT DE PASSE");
$bdd= mysql_select_db("i94285", $connexion) ;
$requete = mysql_query("INSERT INTO `actualites` ( `id_actualites` , `titre` , `texte` , `date` ) VALUES (NULL , '".$POST['titre']."', '".$POST['texte']."',NOW( ) );");
$deconnexion = mysql_close($connexion);
}
?><br />
<table border="0" cellspacing="0" cellpadding="2" width="504">
<tr>
<td class="subHeader"> </td>
</tr>
<tr>
<td class="bodyText"><form id="form1" name="pibform" method="post" action="">
<label></label><p> </p>
</form> <p> </p></td>
</tr>
</table></td>
<br />
</body>
</html>
Voila le script que j'ai mis qu'elle sont les erreurs ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Musique france</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_entertainment.css" type="text/css" />
</head>
<body bgcolor="#14285f">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="02021e">
<td width="400" colspan="2" rowspan="2" nowrap="nowrap"><img src="mm_entertainment_image.jpg" alt="Header image" width="400" height="140" border="0" /></td>
<td width="360" height="58" nowrap="nowrap" colspan="2" id="logo" valign="bottom">MUSIQUE FRANCE </td>
<td width="100%"> </td>
</tr>
<tr bgcolor="02021E">
<td height="57" nowrap="nowrap" colspan="2" id="tagline" valign="top">http://musiquefrance.idoo.com<br /> </td>
<td width="100%"> </td>
</tr>
<tr>
<td colspan="5" bgcolor="#cc3300"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="5"><img src="mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>
<tr>
<td colspan="5" bgcolor="#cc3300"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td colspan="5" id="dateformat"> <br />
<a href="index.html">< RETOUR </a><br /> </td>
</tr>
<tr>
<td width="156" valign="top"> </td>
<td colspan="2" valign="top"><form name="ajout" method="post" action="#">
Titre : <br />
<input type="text" name="titre" id="titre" /><br />
Texte : <br />
<textarea name="texte" id="texte"></textarea>
<br />
<input type="submit" value="Valider" name="valider"/>
</from>
<?php
if ($_POST['valider'] == "Valider")
{
$conexion =
mysql connect ("10.0.5.29","i94285","J'AIS ENLEVER MON MOT DE PASSE");
$bdd= mysql_select_db("i94285", $connexion) ;
$requete = mysql_query("INSERT INTO `actualites` ( `id_actualites` , `titre` , `texte` , `date` ) VALUES (NULL , '".$POST['titre']."', '".$POST['texte']."',NOW( ) );");
$deconnexion = mysql_close($connexion);
}
?><br />
<table border="0" cellspacing="0" cellpadding="2" width="504">
<tr>
<td class="subHeader"> </td>
</tr>
<tr>
<td class="bodyText"><form id="form1" name="pibform" method="post" action="">
<label></label><p> </p>
</form> <p> </p></td>
</tr>
</table></td>
<br />
</body>
</html>
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :
- ForumPhp, proble de site a page unique
- ForumMettre un lien dans une page php
- ForumMettre mot de passe page php
- ForumMettre des scripts php sur son site
- ForumMettre lien directement surune page en php
- ForumAfficher page php dans page php
- ForumPage par page php
- ForumInclure page php dans page php
- solutionsInserer page php dans php
- ForumPhp inclure une page php
- Voir plus