Ejemplo n.º 1
0
}
require 'include/header.php';
?>

<div class="container">
    <div id="margin_bottom">


        <?php 
if (isset($_POST["nom"]) && isset($_POST["prenom"]) && isset($_POST["user"]) && isset($_POST["password"])) {
    $nom = $_POST["nom"];
    $prenom = $_POST["prenom"];
    $login = $_POST["user"];
    $password = $_POST["password"];
    require 'src/classAbonne.php';
    $con = new classAbonne("ETD", "ETD");
    $con->inscription($nom, $prenom, $login, $password);
} else {
    ?>

            <div class="row">
                <div class="col-lg-12">
                    <h2 class="center">Veuillez renseigner les champs</h2>
                </div>
            </div>

            <form class="form-signin" method="post" action="inscription.php" >


                <label class="sr-only">Nom</label>
                <input name="nom" type="text" id="inputEmail" class="form-control" placeholder="Nom" required autofocus>
Ejemplo n.º 2
0
<?php

$login = $_POST["Login"];
$password = $_POST["Password"];
require 'classAbonne.php';
$con = new classAbonne("ETD", "ETD");
$con->connexion($login, $password);
Ejemplo n.º 3
0
<?php

$nom = $_POST["Nom"];
$prenom = $_POST["Prénom"];
$login = $_POST["Login"];
$password = $_POST["Password"];
require 'classAbonne.php';
$con = new classAbonne("ETD", "ETD");
$con->modifierProfil($nom, $prenom, $login, $password);
Ejemplo n.º 4
0
session_start();
if (!isset($_SESSION["NOM_USER"])) {
    header("Location: connexion.php");
}
require 'src/classAbonne.php';
require 'include/header.php';
?>
<div class="container" xmlns="http://www.w3.org/1999/html">
    <div id="margin_bottom">

        <h3>Information du profil</h3>

        <div class="row">
            <div class="col-lg-6">
                <?php 
$con = new classAbonne("ETD", "ETD");
$con->infoProfil();
$profil = $con->arrayProfil();
?>
            </div>
            <div class="col-lg-6">
                <form method="post" action="src/traitementProfil.php">
                    <input name="Nom" type="text" class="form-control" placeholder="Nom" value="<?php 
echo $profil[0];
?>
" required autofocus>
                    <input name="Prénom" type="text" class="form-control" placeholder="Prénom" value="<?php 
echo $profil[1];
?>
" required >
                    <input name="Login" type="text" class="form-control" placeholder="Login" value="<?php