le 21/10/2008 à 13:19
jinin
je voudrais restreindre l'espace forum de mon site aux different invite le code ke j'ai ecris ne passe pas
<?php
session_start();
$pseudo = formulaires($_POST['pseudo']);
if(!$pseudo)
{
header('location:Ac_forum.php?Erreur=pseudo');
}
$reponse_cores=mysql_query(Select* from gestmembres where pseudo='$pseudo') or die (Erreur : '.mysql_erreur());
$count_cores=mysql_num_rows($reponse_cores);
if($count_cores == 0 )
{
header('Location:Ac_forum.php?erreur=connexion');
}
else
{
header('Location:Ac_forum.php');
}
include_once('bas.php');
?>
<html>
<head><title>identifiez-vous </title></head>
<body>
<form action=Ac_forum.php method='post'>
<table><tr><td label for='pseudo'>Pseudo :>
</td></tr>
<tr>
<td><input type="text" name="text" size="50"></td>
<input type="submit" name="connexion" value="Connexion">
</tr></form>
</table>
</body>
</html>