connexion à espace membre

Répondre


Cette question est un moyen d’empêcher des soumissions automatisées de formulaires par des robots.
Smileys
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: =D> #-o =P~ :^o :non: :priere: 8-|
Voir plus de smileys
  Revue du sujet
 

  Étendre la vue Revue du sujet : connexion à espace membre

Re: connexion à espace membre

par Sabrina » 11 mai 2012, 16:22

ok ca marche
j'ai fais une nouvelle page "deconnexion.php" dont j'ai mis tous simplement ce code :
<?php
session_start();
session_destroy()
; header("location:index.php");
exit; 
?>

Merci =D>

Re: connexion à espace membre

par xTG » 11 mai 2012, 11:56

Une session est durable heureusement... Sinon cela voudrait dire qu'en changeant de page on la perd. ;)
Il faut passer par un session_destroy() pour la supprimer, ou bien en fermant ton navigateur internet.

Re: connexion à espace membre

par Sabrina » 11 mai 2012, 11:51

:oops:
oui vous avez raison
elle m'affiche :
array(1) { ["pseudo"]=> string(7) "Admin" }

c'est mon pseudo que j'utilise pour tester #-o
J'ai fermé la page et je l'ai ouvrir de nouveau mais c la meme chose elle s'ouvre et elle m'affiche ce pseudo

Re: connexion à espace membre

par moogli » 11 mai 2012, 11:44

Comme tu viens de le faire la ;)

Ça va afficher le contenu de la variable $_SESSION.


@+

Re: connexion à espace membre

par Sabrina » 11 mai 2012, 11:40

et comment j'utilise : var_dump($_SESSION);

Re: connexion à espace membre

par xTG » 11 mai 2012, 11:12

La condition est claire.
Donc si ta page s'affiche c'est que $_SESSION['pseudo'] n'est pas vide et donc que tu es connecté. ;)
Vérifies avec var_dump($_SESSION);

Re: connexion à espace membre

par Sabrina » 11 mai 2012, 11:04

J'ai deja mis mon code demande php et aussi le test que j'ai fais pour qu'elle ne s'ouvre pas qu'aprés la connexion
Le voila :
<?php 

session_start(); 

 	 
include 'connexion.php';
$login = $_SESSION['pseudo'];
$requet="SELECT * FROM membres WHERE Pseudo = '$login'";
$resultt = mysql_query($requet) or exit(mysql_error().'Echec');
$data = mysql_fetch_assoc($resultt);

if( !empty($_SESSION['pseudo']) )
{
?>


///// Mon tableau d'affichage //////

<?php 

 if (isset($_POST['Submit'])) 
{

$dem=$_POST['demandeur'];

if($dem=='ad')
  {
   $d='&#1575;&#1604;&#1573;&#1583;&#1575;&#1585;&#1577;';
  }
 else if ($dem=='pf')
  {
   $d='&#1601;&#1590;&#1575;&#1569; &#1575;&#1604;&#1605;&#1587;&#1575;&#1606;&#1583;&#1577; &#1604;&#1604;&#1576;&#1581;&#1579; &#1608; &#1575;&#1604;&#1578;&#1579;&#1605;&#1610;&#1606';
  }
 else if ($dem=='lsba')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1605;&#1608;&#1575;&#1583; &#1584;&#1575;&#1578; &#1575;&#1604;&#1601;&#1575;&#1593;&#1604;&#1610;&#1577; &#1575;&#1604;&#1576;&#1610;&#1608;&#1604;&#1608;&#1580;&#1610;&#1577;';
  }
 else if ($dem=='lpmp')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1601;&#1610;&#1586;&#1610;&#1608;&#1604;&#1608;&#1580;&#1610;&#1575; &#1575;&#1604;&#1580;&#1586;&#1574;&#1610;&#1577; &#1604;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578;';
  }
 else if ($dem=='lpe')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578; &#1575;&#1604;&#1605;&#1602;&#1575;&#1608;&#1605;&#1577; &#1604;&#1604;&#1590;&#1594;&#1608;&#1591;&#1575;&#1578; &#1575;&#1604;&#1576;&#1610;&#1574;&#1610;&#1577; &#1575;&#1604;&#1602;&#1575;&#1587;&#1610;&#1577;';
  }
 else if ($dem=='ll')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1576;&#1602;&#1608;&#1604;&#1610;&#1575;&#1578;';
  }
  else if ($dem=='bo')
  {
   $d='&#1576;&#1610;&#1608;&#1578;&#1603;&#1606;&#1608;&#1604;&#1608;&#1580;&#1610;&#1575; &#1575;&#1604;&#1586;&#1610;&#1578;&#1608;&#1606; ';
  }




$tit=$_POST['titreprojet'];

if($tit=='Tp0')
  {
     $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1571;&#1608;&#1604;';
  }
   else if ($tit=='Tp1')
{
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; :&#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2007';
  }
 else if ($tit=='Tp2')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2010';
  }
 else if ($tit=='Tp3')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1578;&#1583;&#1593;&#1610;&#1605; &#1575;&#1604;&#1576;&#1585;&#1575;&#1605;&#1580; &#1575;&#1604;&#1575;&#1610;&#1604;&#1575;&#1601;&#1610;&#1577; &#1581;&#1608;&#1604; &#1575;&#1604;&#1586;&#1585;&#1575;&#1593;&#1575;&#1578; &#1575;&#1604;&#1603;&#1576;&#1585;&#1609;';
  }
 else if ($tit=='Tp4')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1575;&#1587;&#1576;&#1575;&#1606;&#1610;';
  }
 else if ($tit=='Tp5')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2006';
  }
 else if ($tit=='Tp6')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1575;&#1610;&#1591;&#1575;&#1604;&#1610;';
  }
  else if ($tit=='Tp7')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1571;&#1585;&#1583;&#1606;&#1610;';
  }
  else if ($tit=='Tp8')
  {
   $tp='Biocircle &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; &#1605;&#1593; &#1575;&#1604;&#1575;&#1578;&#1581;&#1575;&#1583; &#1575;&#1604;&#1571;&#1608;&#1585;&#1608;&#1576;&#1610;';
  }
  else if ($tit=='Tp9')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; &#1605;&#1593; &#1575;&#1604;&#1608;&#1604;&#1575;&#1610;&#1575;&#1578; &#1575;&#1604;&#1605;&#1578;&#1581;&#1583;&#1577; &#1575;&#1604;&#1571;&#1605;&#1585;&#1610;&#1603;&#1610;&#1577;';
  }
  else if ($tit=='Tp10')
  {
   $tp='NEPAD &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1605;&#1593; &#1605;&#1606;&#1592;&#1605;&#1575;&#1578; ';
  }
  else if ($tit=='Tp11')
  {
   $tp='GLIPTTC &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1601;&#1610; &#1573;&#1591;&#1575;&#1585; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610;';
  }
  else if ($tit=='Tp12')
  {
   $tp='AQUARHIZ &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1581;&#1603;&#1605; &#1601;&#1610; &#1578;&#1601;&#1575;&#1593;&#1604; &#1575;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578; &#1605;&#1593; &#1575;&#1604;&#1576;&#1603;&#1578;&#1610;&#1585;&#1610;&#1575; &#1604;&#1578;&#1581;&#1587;&#1610;&#1606; &#1602;&#1583;&#1585;&#1577; &#1575;&#1604;&#1576;&#1602;&#1608;&#1604;&#1610;&#1575;&#1578; ';
  }
  else if ($tit=='Tp13')
  {
   $tp='SECAEN &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1578;&#1601;&#1575;&#1602;&#1610;&#1575;&#1578; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1605;&#1593; &#1605;&#1572;&#1587;&#1587;&#1575;&#1578; &#1575;&#1602;&#1578;&#1589;&#1575;&#1583;&#1610;&#1577; &#1608;&#1591;&#1606;&#1610;&#1577;';
  }
  else if ($tit=='Tp14')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1601;&#1608;&#1575;&#1590;&#1604; &#1575;&#1604;&#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1575;&#1604;&#1605;&#1606;&#1578;&#1607;&#1610;&#1577; &#1605;&#1583;&#1578;&#1607;&#1575;';
  }
  else if ($tit=='Tp15')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1605;&#1593; &#1575;&#1604;&#1605;&#1585;&#1603;&#1586; &#1575;&#1604;&#1601;&#1606;&#1610; &#1604;&#1604;&#1576;&#1591;&#1575;&#1591;&#1575; &#1608;&#1575;&#1604;&#1602;&#1606;&#1575;&#1585;&#1610;&#1577;';
  }
  else if ($tit=='Tp16')
  {
   $tp='FOOD FOR LIFE : &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593;';
  }
  
$n = $data['Nom']; 
$p = $data['Prenom']; 

$obj=$_POST['objectif'];
//$dat=$_POST['date'];
//$i1=$_POST['id1'];
$ar1=$_POST['art1'];
$qt1=$_POST['qte1'];
$car1=$_POST['caract1'];

//$i2=$_POST['id2'];
$ar2=$_POST['art2'];
$qt2=$_POST['qte2'];
$car2=$_POST['caract2'];

//$i3=$_POST['id3'];
$ar3=$_POST['art3'];
$qt3=$_POST['qte3'];
$car3=$_POST['caract3'];

//$i4=$_POST['id4'];
$ar4=$_POST['art4'];
$qt4=$_POST['qte4'];
$car4=$_POST['caract4'];

//$i5=$_POST['id5'];
$ar5=$_POST['art5'];
$qt5=$_POST['qte5'];
$car5=$_POST['caract5'];

//$i6=$_POST['id6'];
$ar6=$_POST['art6'];
$qt6=$_POST['qte6'];
$car6=$_POST['caract6'];

//$i7=$_POST['id7'];
$ar7=$_POST['art7'];
$qt7=$_POST['qte7'];
$car7=$_POST['caract7'];

//$i8=$_POST['id8'];
$ar8=$_POST['art8'];
$qt8=$_POST['qte8'];
$car8=$_POST['caract8'];

//$i9=$_POST['id9'];
$ar9=$_POST['art9'];
$qt9=$_POST['qte9'];
$car9=$_POST['caract9'];

//$i10=$_POST['id10'];
$ar10=$_POST['art10'];
$qt10=$_POST['qte10'];
$car10=$_POST['caract10'];

//$i11=$_POST['id11'];
$ar11=$_POST['art11'];
$qt11=$_POST['qte11'];
$car11=$_POST['caract11'];

//$i12=$_POST['id12'];
$ar12=$_POST['art12'];
$qt12=$_POST['qte12'];
$car12=$_POST['caract12'];


include 'connexion.php';

 $requet="SELECT * FROM demandes";
 $resultt = mysql_query($requet) or exit(mysql_error().'Echec');
 

$ar = array($ar1, $ar2, $ar3, $ar4,$ar5,$ar6,$ar7,$ar8,$ar9,$ar10,$ar11,$ar12);
$articl = implode("  &  ", $ar);

$qt = array($qt1, $qt2, $qt3, $qt4,$qt5,$qt6,$qt7,$qt8,$qt9,$qt10,$qt11,$qt12);
$qte = implode("  &  ", $qt);

$caract = array($car1, $car2, $car3, $car4,$car5,$car6,$car7,$car8,$car9,$car10,$car11,$car12);
$car = implode("   &  ", $caract);


$requete = "INSERT INTO demandes(demandeur,objectif,titre_projet, besoins, quantites, caracteristiques, date_demande,Nom,Prenom) 
       VALUES('$d','$obj','$tp', '$articl', '$qte', '$car', Now(),'$n','$p')";
 $result = mysql_query($requete) or exit(mysql_error().'Echec');

 ?> 
 
 <script language="javascript"> 
alert('Votre demande d''achat a été bien enregistrée! ');
 </script>
 
 <?php 

echo header("location:MonCompte.php");
}
 }//Submit
else
 {
 ?>
   <script language="javascript"> 
alert('Vous devez être connecté !!');
             </script>

 <meta http-equiv="refresh" content="0;url=index.php" /> 

<?php 
}
?>

Re: connexion à espace membre

par xTG » 11 mai 2012, 10:38

Montres nous la code incriminé.
Et pour debug rappelles toi que tu peux utiliser var_dump($_SESSION) pour vérifier l'état des variables de session (existence, contenance, ect).

Re: connexion à espace membre

par Sabrina » 11 mai 2012, 10:08

cette page demande.php où j'ai mis un test si il n'y a pas de connexion et pas de pseudo en principe elle ne s'ouvre pas mais ca marche pas, elle s'affiche normalement

Re: connexion à espace membre

par xTG » 10 mai 2012, 17:21

Erreur ? Quelle page ? En provenance de quoi ?

Re: connexion à espace membre

par Sabrina » 10 mai 2012, 16:56

ca marche pas :(
la page s'ouvre comme si j'ai pas de test

Re: connexion à espace membre

par xTG » 10 mai 2012, 16:48

Ah ouais ok... Devrais pas y avoir de redirection vu l'emplacement de la balise meta...
C'est censé être entre les balises <head>. ;)

Sinon ton souci vient surement du fait que la session n'est pas démarrée.
Comme pour header() la fonction session_start() doit être faite avant TOUT AFFICHAGE !
Ton serveur ne doit pas être configuré pour afficher les warnings, de ce fait tu ne vois pas le warning correspondant à session_start().
Solution : déplaces le session_start() en première instruction de la page.

Re: connexion à espace membre

par Sabrina » 10 mai 2012, 16:27

dzl mais j'ai pas compris :(
voici ma page php complète pour que tu peux m'aider
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Demande d'achat</title>
<style type="text/css">
<!--
.Style3 {font-size: 24px}
.Style8 {
	font-size: 16px;
	font-weight: bold;
}
.Style9 {font-size: 20px; }
.Style10 {font-size: 22px}
.Style11 {font-size: xx-large}
-->
</style>
</head>

<body>

<?php 
if( !empty($_SESSION['pseudo']) )
{
 	 ?>
 

  







		   <span class="Style10"><img src="images/entete1.jpg" width="952" height="172" /></span>
		   <p align="center" class="Style10">&nbsp;</p> 
		   <p align="center" class="header_01 Style11"><strong>&#1605;&#1591;&#1604;&#1576; &#1588;&#1585;&#1575;&#1569;</strong></p>
	<?php 


session_start();

include 'connexion.php';
$login = $_SESSION['pseudo'];
$requet="SELECT * FROM membres WHERE Pseudo = '$login'";
$resultt = mysql_query($requet) or exit(mysql_error().'Echec');
$data = mysql_fetch_assoc($resultt);
?>
 <table width="100%" border="0" align="center">
    
	<tr>
      <td><form  method="post" id="form1" action="">

<table width="1035" border="1" align="center">
  <tr >
    <td width="657" height="51" align="right" class="Style10">
	
        <select name="demandeur" class="Style9" >
                <option value="ad">&#1575;&#1604;&#1573;&#1583;&#1575;&#1585;&#1577; </option>
				<option value="pf" selected="selected">&#1601;&#1590;&#1575;&#1569; &#1575;&#1604;&#1605;&#1587;&#1575;&#1606;&#1583;&#1577; &#1604;&#1604;&#1576;&#1581;&#1579; &#1608; &#1575;&#1604;&#1578;&#1579;&#1605;&#1610;&#1606;</option>
                <option value="lsba">&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1605;&#1608;&#1575;&#1583; &#1584;&#1575;&#1578; &#1575;&#1604;&#1601;&#1575;&#1593;&#1604;&#1610;&#1577; &#1575;&#1604;&#1576;&#1610;&#1608;&#1604;&#1608;&#1580;&#1610;&#1577; </option>
                <option value="lpmp">&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1601;&#1610;&#1586;&#1610;&#1608;&#1604;&#1608;&#1580;&#1610;&#1575; &#1575;&#1604;&#1580;&#1586;&#1574;&#1610;&#1577; &#1604;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578;	</option>
				<option value="lpe">&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578; &#1575;&#1604;&#1605;&#1602;&#1575;&#1608;&#1605;&#1577; &#1604;&#1604;&#1590;&#1594;&#1608;&#1591;&#1575;&#1578; &#1575;&#1604;&#1576;&#1610;&#1574;&#1610;&#1577; &#1575;&#1604;&#1602;&#1575;&#1587;&#1610;&#1577;		</option>
				<option value="ll">&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1576;&#1602;&#1608;&#1604;&#1610;&#1575;&#1578; </option>
				<option value="bo">&#1576;&#1610;&#1608;&#1578;&#1603;&#1606;&#1608;&#1604;&#1608;&#1580;&#1610;&#1575; &#1575;&#1604;&#1586;&#1610;&#1578;&#1608;&#1606;  </option>
        </select>       </td>
   
    <td width="362" align="right" class="Style10"><strong> : &#1575;&#1604;&#1607;&#1610;&#1603;&#1604; &#1575;&#1604;&#1573;&#1583;&#1575;&#1585;&#1610; &#1575;&#1604;&#1605;&#1578;&#1602;&#1583;&#1617;&#1605; &#1576;&#1575;&#1604;&#1591;&#1604;&#1576;</strong></td>
  </tr>
  
  <tr >
    <td width="657" height="51" align="center" class="Style10"><textarea  name="objectif" cols="80" rows="" class="Style8"></textarea></td>
   
    <td width="362" align="right" class="Style10"><strong>: &#1605;&#1608;&#1590;&#1608;&#1593; &#1575;&#1604;&#1591;&#1604;&#1576;  </strong></td>
  </tr>
</table>

           <span class="Style10"><br />	
           </span>
<table width="1041" border="1" align="center">
  <tr >
    <td width="839" align="right" class="Style10"><select name="titreprojet" class="Style9" >
      <option value="Tp0">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1571;&#1608;&#1604;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
      <option value="Tp1">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; :&#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2007</option>
      <option value="Tp2"> &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2010</option>
      <option value="Tp3">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1578;&#1583;&#1593;&#1610;&#1605; &#1575;&#1604;&#1576;&#1585;&#1575;&#1605;&#1580; &#1575;&#1604;&#1575;&#1610;&#1604;&#1575;&#1601;&#1610;&#1577; &#1581;&#1608;&#1604; &#1575;&#1604;&#1586;&#1585;&#1575;&#1593;&#1575;&#1578; &#1575;&#1604;&#1603;&#1576;&#1585;&#1609;</option>
      <option value="Tp4">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1575;&#1587;&#1576;&#1575;&#1606;&#1610; </option>
      <option value="Tp5">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2006 </option>
      <option value="Tp6">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1575;&#1610;&#1591;&#1575;&#1604;&#1610; </option>
      <option value="Tp7">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1571;&#1585;&#1583;&#1606;&#1610; </option>
      <option value="Tp8">Biocircle &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; &#1605;&#1593; &#1575;&#1604;&#1575;&#1578;&#1581;&#1575;&#1583; &#1575;&#1604;&#1571;&#1608;&#1585;&#1608;&#1576;&#1610; </option>
      <option value="Tp9">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; &#1605;&#1593; &#1575;&#1604;&#1608;&#1604;&#1575;&#1610;&#1575;&#1578; &#1575;&#1604;&#1605;&#1578;&#1581;&#1583;&#1577; &#1575;&#1604;&#1571;&#1605;&#1585;&#1610;&#1603;&#1610;&#1577; </option>
      <option value="Tp10">NEPAD &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1605;&#1593; &#1605;&#1606;&#1592;&#1605;&#1575;&#1578; </option>
      <option value="Tp11">GLIPTTC &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1601;&#1610; &#1573;&#1591;&#1575;&#1585; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; </option>
      <option value="Tp12">AQUARHIZ &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1581;&#1603;&#1605; &#1601;&#1610; &#1578;&#1601;&#1575;&#1593;&#1604; &#1575;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578; &#1605;&#1593; &#1575;&#1604;&#1576;&#1603;&#1578;&#1610;&#1585;&#1610;&#1575; &#1604;&#1578;&#1581;&#1587;&#1610;&#1606; &#1602;&#1583;&#1585;&#1577; &#1575;&#1604;&#1576;&#1602;&#1608;&#1604;&#1610;&#1575;&#1578; </option>
      <option value="Tp13">SECAEN &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1578;&#1601;&#1575;&#1602;&#1610;&#1575;&#1578; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1605;&#1593; &#1605;&#1572;&#1587;&#1587;&#1575;&#1578; &#1575;&#1602;&#1578;&#1589;&#1575;&#1583;&#1610;&#1577; &#1608;&#1591;&#1606;&#1610;&#1577; </option>
      <option value="Tp14">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1601;&#1608;&#1575;&#1590;&#1604; &#1575;&#1604;&#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1575;&#1604;&#1605;&#1606;&#1578;&#1607;&#1610;&#1577; &#1605;&#1583;&#1578;&#1607;&#1575; </option>
      <option value="Tp15">&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1605;&#1593; &#1575;&#1604;&#1605;&#1585;&#1603;&#1586; &#1575;&#1604;&#1601;&#1606;&#1610; &#1604;&#1604;&#1576;&#1591;&#1575;&#1591;&#1575; &#1608;&#1575;&#1604;&#1602;&#1606;&#1575;&#1585;&#1610;&#1577; </option>
      <option value="Tp16">FOOD FOR LIFE : &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; </option>
    </select></td>
     <td width="186" align="right" class="Style10"><strong>&#1582;&#1575;&#1589; &#1576;&#1589;&#1575;&#1581;&#1576; &#1575;&#1604;&#1591;&#1604;&#1576; : &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1571;&#1608; &#1575;&#1604;&#1605;&#1588;&#1585;&#1608;&#1593; </strong></td>
  </tr>
</table>   
		   
        <span class="Style10"><br />
        </span>
<table width="952" border="1" align="center">
  <tr >
    <td width="400" height="51" align="center" class="Style10"><strong>&#1575;&#1604;&#1582;&#1575;&#1589;&#1610;&#1575;&#1578; &#1575;&#1604;&#1601;&#1606;&#1610;&#1577; &#1575;&#1604;&#1605;&#1591;&#1604;&#1608;&#1576;&#1577; </strong></td>
     <td width="64" align="center" class="Style10"><strong>&#1575;&#1604;&#1603;&#1605;&#1610;&#1577;</strong></td>
     <td width="400" align="center" class="Style10"><strong>&#1576;&#1610;&#1575;&#1606; &#1575;&#1604;&#1605;&#1591;&#1604;&#1608;&#1576; </strong></td>
     <td width="73" align="center" class="Style10"><strong>&#1575;&#1604;&#1593;&#1583;&#1583; &#1575;&#1604;&#1585;&#1578;&#1576;&#1610;</strong></td>
  </tr>

  <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract1" cols="47" rows="" class="Style8"></textarea> </td>
     <td width="64" align="center" class="Style10"><textarea name="qte1" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art1" cols="47" rows="" wrap="virtual" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">1</td>
  </tr>
  
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract2" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte2" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art2" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">2</td>
   </tr>
  
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract3" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte3" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art3" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">3</td>
   </tr>
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract4" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte4" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art4" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">4</td>
   </tr>
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract5" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte5" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art5" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">5</td>
   </tr>
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract6" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte6" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art6" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">6</td>
  </tr>
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract7" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte7" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art7" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">7</td>
  </tr>
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract8" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte8" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art8" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">8</td>
  </tr>
   <tr >
     <td width="354" height="51" align="center" class="Style10"><textarea name="caract9" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte9" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art9" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">9</td>
  </tr>
   <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract10" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte10" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art10" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">10</td>
  </tr>
  <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract11" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte11" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art11" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">11</td>
  </tr>
  <tr >
    <td width="354" height="51" align="center" class="Style10"><textarea name="caract12" cols="47" rows="" class="Style8"></textarea></td>
     <td width="64" align="center" class="Style10"><textarea name="qte12" cols="3" rows="" class="Style8"></textarea></td>
     <td width="433" align="center" class="Style10"><textarea name="art12" cols="47" rows="" class="Style8"></textarea></td>
     <td width="73" align="center" class="Style10">12</td>
  </tr>
</table>   		   

<table width="952" border="0" align="center">
  <tr >
    <td height="28" colspan="3" align="right" class="Style10">&nbsp;</td>
     <td colspan="2" align="right" class="Style10"><strong><input name="date" type="text" size="20" />: &#1576;&#1585;&#1580; &#1575;&#1604;&#1587;&#1583;&#1585;&#1610;&#1577; &#1601;&#1610; </strong></td>
  </tr>
   <tr >
    <td width="55" height="72" align="center" class="Style10"><p></strong></p></td>
     <td width="237" align="center"><span class="Style10">&nbsp;<strong>&#1575;&#1604;&#1603;&#1600;&#1575;&#1578;&#1576; &#1575;&#1604;&#1593;&#1600;&#1575;&#1605; &#1604;&#1604;&#1605;&#1585;&#1603;&#1586;</strong>
      </p>
     </span>
     <p class="Style10"><strong><strong>&#1604;&#1591;&#1610;&#1601;&#1577; &#1605;&#1608;&#1587;&#1609; &#1576;&#1606; &#1602;&#1583;&#1610;&#1600;&#1583;&#1577;  </strong></td>
     <td width="326" align="center">&nbsp;</td>
     <td width="274" align="center"><p class="Style10"><strong>: &#1573;&#1605;&#1590;&#1575;&#1569; &#1585;&#1574;&#1610;&#1587; &#1575;&#1604;&#1607;&#1610;&#1603;&#1604; </strong></p>
     <p class="Style3"><span class="Style10"><strong>: &#1573;&#1605;&#1590;&#1575;&#1569; &#1589;&#1575;&#1581;&#1576; &#1575;&#1604;&#1605;&#1588;&#1585;&#1608;</strong></span><strong>&#1593; </strong></p></td>
     <td width="38" align="center">&nbsp;</td>
  </tr>
</table> 
<p >&nbsp; </p>  
<p >&nbsp; </p>  

<input type="submit" name="Submit" value="Valider"   onclick="window.print()"/>    



<?php 

 if (isset($_POST['Submit'])) 
{

$dem=$_POST['demandeur'];

if($dem=='ad')
  {
   $d='&#1575;&#1604;&#1573;&#1583;&#1575;&#1585;&#1577;';
  }
 else if ($dem=='pf')
  {
   $d='&#1601;&#1590;&#1575;&#1569; &#1575;&#1604;&#1605;&#1587;&#1575;&#1606;&#1583;&#1577; &#1604;&#1604;&#1576;&#1581;&#1579; &#1608; &#1575;&#1604;&#1578;&#1579;&#1605;&#1610;&#1606';
  }
 else if ($dem=='lsba')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1605;&#1608;&#1575;&#1583; &#1584;&#1575;&#1578; &#1575;&#1604;&#1601;&#1575;&#1593;&#1604;&#1610;&#1577; &#1575;&#1604;&#1576;&#1610;&#1608;&#1604;&#1608;&#1580;&#1610;&#1577;';
  }
 else if ($dem=='lpmp')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1601;&#1610;&#1586;&#1610;&#1608;&#1604;&#1608;&#1580;&#1610;&#1575; &#1575;&#1604;&#1580;&#1586;&#1574;&#1610;&#1577; &#1604;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578;';
  }
 else if ($dem=='lpe')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578; &#1575;&#1604;&#1605;&#1602;&#1575;&#1608;&#1605;&#1577; &#1604;&#1604;&#1590;&#1594;&#1608;&#1591;&#1575;&#1578; &#1575;&#1604;&#1576;&#1610;&#1574;&#1610;&#1577; &#1575;&#1604;&#1602;&#1575;&#1587;&#1610;&#1577;';
  }
 else if ($dem=='ll')
  {
   $d='&#1605;&#1582;&#1576;&#1585; &#1575;&#1604;&#1576;&#1602;&#1608;&#1604;&#1610;&#1575;&#1578;';
  }
  else if ($dem=='bo')
  {
   $d='&#1576;&#1610;&#1608;&#1578;&#1603;&#1606;&#1608;&#1604;&#1608;&#1580;&#1610;&#1575; &#1575;&#1604;&#1586;&#1610;&#1578;&#1608;&#1606; ';
  }




$tit=$_POST['titreprojet'];

if($tit=='Tp0')
  {
     $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1571;&#1608;&#1604;';
  }
   else if ($tit=='Tp1')
{
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; :&#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2007';
  }
 else if ($tit=='Tp2')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2010';
  }
 else if ($tit=='Tp3')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1578;&#1583;&#1593;&#1610;&#1605; &#1575;&#1604;&#1576;&#1585;&#1575;&#1605;&#1580; &#1575;&#1604;&#1575;&#1610;&#1604;&#1575;&#1601;&#1610;&#1577; &#1581;&#1608;&#1604; &#1575;&#1604;&#1586;&#1585;&#1575;&#1593;&#1575;&#1578; &#1575;&#1604;&#1603;&#1576;&#1585;&#1609;';
  }
 else if ($tit=='Tp4')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1575;&#1587;&#1576;&#1575;&#1606;&#1610;';
  }
 else if ($tit=='Tp5')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1604;&#1576;&#1585;&#1606;&#1575;&#1605;&#1580; &#1575;&#1604;&#1608;&#1591;&#1606;&#1610; &#1604;&#1604;&#1576;&#1581;&#1579; &#1575;&#1604;&#1593;&#1604;&#1605;&#1610; 2006';
  }
 else if ($tit=='Tp6')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1575;&#1610;&#1591;&#1575;&#1604;&#1610;';
  }
  else if ($tit=='Tp7')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1578;&#1608;&#1606;&#1587;&#1610; &#1575;&#1604;&#1571;&#1585;&#1583;&#1606;&#1610;';
  }
  else if ($tit=='Tp8')
  {
   $tp='Biocircle &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; &#1605;&#1593; &#1575;&#1604;&#1575;&#1578;&#1581;&#1575;&#1583; &#1575;&#1604;&#1571;&#1608;&#1585;&#1608;&#1576;&#1610;';
  }
  else if ($tit=='Tp9')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610; &#1605;&#1593; &#1575;&#1604;&#1608;&#1604;&#1575;&#1610;&#1575;&#1578; &#1575;&#1604;&#1605;&#1578;&#1581;&#1583;&#1577; &#1575;&#1604;&#1571;&#1605;&#1585;&#1610;&#1603;&#1610;&#1577;';
  }
  else if ($tit=='Tp10')
  {
   $tp='NEPAD &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1605;&#1593; &#1605;&#1606;&#1592;&#1605;&#1575;&#1578; ';
  }
  else if ($tit=='Tp11')
  {
   $tp='GLIPTTC &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1601;&#1610; &#1573;&#1591;&#1575;&#1585; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1575;&#1604;&#1583;&#1608;&#1604;&#1610;';
  }
  else if ($tit=='Tp12')
  {
   $tp='AQUARHIZ &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1581;&#1603;&#1605; &#1601;&#1610; &#1578;&#1601;&#1575;&#1593;&#1604; &#1575;&#1604;&#1606;&#1576;&#1575;&#1578;&#1575;&#1578; &#1605;&#1593; &#1575;&#1604;&#1576;&#1603;&#1578;&#1610;&#1585;&#1610;&#1575; &#1604;&#1578;&#1581;&#1587;&#1610;&#1606; &#1602;&#1583;&#1585;&#1577; &#1575;&#1604;&#1576;&#1602;&#1608;&#1604;&#1610;&#1575;&#1578; ';
  }
  else if ($tit=='Tp13')
  {
   $tp='SECAEN &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1575;&#1578;&#1601;&#1575;&#1602;&#1610;&#1575;&#1578; &#1605;&#1582;&#1578;&#1604;&#1601;&#1577; &#1605;&#1593; &#1605;&#1572;&#1587;&#1587;&#1575;&#1578; &#1575;&#1602;&#1578;&#1589;&#1575;&#1583;&#1610;&#1577; &#1608;&#1591;&#1606;&#1610;&#1577;';
  }
  else if ($tit=='Tp14')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1601;&#1608;&#1575;&#1590;&#1604; &#1575;&#1604;&#1605;&#1588;&#1575;&#1585;&#1610;&#1593; &#1575;&#1604;&#1605;&#1606;&#1578;&#1607;&#1610;&#1577; &#1605;&#1583;&#1578;&#1607;&#1575;';
  }
  else if ($tit=='Tp15')
  {
   $tp='&#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593; &#1575;&#1604;&#1578;&#1593;&#1575;&#1608;&#1606; &#1605;&#1593; &#1575;&#1604;&#1605;&#1585;&#1603;&#1586; &#1575;&#1604;&#1601;&#1606;&#1610; &#1604;&#1604;&#1576;&#1591;&#1575;&#1591;&#1575; &#1608;&#1575;&#1604;&#1602;&#1606;&#1575;&#1585;&#1610;&#1577;';
  }
  else if ($tit=='Tp16')
  {
   $tp='FOOD FOR LIFE : &#1575;&#1604;&#1593;&#1606;&#1608;&#1575;&#1606; &#1575;&#1604;&#1579;&#1575;&#1606;&#1610; : &#1605;&#1588;&#1585;&#1608;&#1593;';
  }
  
$n = $data['Nom']; 
$p = $data['Prenom']; 

$obj=$_POST['objectif'];


$ar1=$_POST['art1'];
$qt1=$_POST['qte1'];
$car1=$_POST['caract1'];


$ar2=$_POST['art2'];
$qt2=$_POST['qte2'];
$car2=$_POST['caract2'];


$ar3=$_POST['art3'];
$qt3=$_POST['qte3'];
$car3=$_POST['caract3'];


$ar4=$_POST['art4'];
$qt4=$_POST['qte4'];
$car4=$_POST['caract4'];


$ar5=$_POST['art5'];
$qt5=$_POST['qte5'];
$car5=$_POST['caract5'];


$ar6=$_POST['art6'];
$qt6=$_POST['qte6'];
$car6=$_POST['caract6'];

$ar7=$_POST['art7'];
$qt7=$_POST['qte7'];
$car7=$_POST['caract7'];

$ar8=$_POST['art8'];
$qt8=$_POST['qte8'];
$car8=$_POST['caract8'];


$ar9=$_POST['art9'];
$qt9=$_POST['qte9'];
$car9=$_POST['caract9'];


$ar10=$_POST['art10'];
$qt10=$_POST['qte10'];
$car10=$_POST['caract10'];


$ar11=$_POST['art11'];
$qt11=$_POST['qte11'];
$car11=$_POST['caract11'];


$ar12=$_POST['art12'];
$qt12=$_POST['qte12'];
$car12=$_POST['caract12'];


include 'connexion.php';

 $requet="SELECT * FROM demandes";
 $resultt = mysql_query($requet) or exit(mysql_error().'Echec');

$ar = array($ar1, $ar2, $ar3, $ar4,$ar5,$ar6,$ar7,$ar8,$ar9,$ar10,$ar11,$ar12);
$articl = implode("  &  ", $ar);

$qt = array($qt1, $qt2, $qt3, $qt4,$qt5,$qt6,$qt7,$qt8,$qt9,$qt10,$qt11,$qt12);
$qte = implode("  &  ", $qt);

$caract = array($car1, $car2, $car3, $car4,$car5,$car6,$car7,$car8,$car9,$car10,$car11,$car12);
$car = implode("   &  ", $caract);


$requete = "INSERT INTO demandes(demandeur,objectif,titre_projet, besoins, quantites, caracteristiques, date_demande,Nom,Prenom) 
       VALUES('$d','$obj','$tp', '$articl', '$qte', '$car', Now(),'$n','$p')";
 $result = mysql_query($requete) or exit(mysql_error().'Echec');
 


 ?> 
 
 <script language="javascript"> 
alert('Votre demande d''achat a été bien enregistrée! ');
 </script>
 
 <?php 




echo header("location:MonCompte.php");
}
 }//Submit
else
 {
 ?>
   <script language="javascript"> 
alert('Vous devez être connecté !!');
             </script>

 <meta http-equiv="refresh" content="0;url=index.php" /> 

<?php }?>


</form></td> </tr> </table>

</body>
</html>

Re: connexion à espace membre

par xTG » 10 mai 2012, 15:15

Et si le var_dump ne s'affiche pas dans la page, regardes dans le code source généré (clic droit > afficher le code source).
<!--<meta http-equiv="refresh" content="0;url=index.php" />-->
<?php var_dump($_SESSION); 

Re: connexion à espace membre

par Sabrina » 10 mai 2012, 15:00

dzl mais j'ai pas compris ce que tu me demande de faire je suis debutant en php
comment je peux faire ce que tu demande ???