Location: PHPKode > projects > Prolawyer > etude/verify.php
<? //error_reporting(8);
session_start();
//connection à la base de donnée avec les données du formulaire
require("./fonctions.php");
//tab_affiche($_SESSION);
require("connection_data.php");
if ($connection["test"]){

// Si cela fonctionne, on crée des variables de session ("$session_..." en cookie) à partir des variables de formulaires("$start_...")

$_SESSION["session_utilisateur"]=$_POST["start_utilisateur"];
$_SESSION["session_pwd"]=$_POST["start_pwd"];
if(($_SESSION["session_avdb"])) {
header("Location: ./recherche_dossier.php");}
else {
//tab_affiche($_SESSION);
echo "<html>
      <head>";
require("./title.php");
echo "</head>";
body();
require ("./entete.php");
echo "<table width=95% align=center><tr><td>";
echo "<h1>$verify_title</h1>";
echo "<table><form method=post action=./recherche_dossier.php>
<tr>
         <td>
            $index_what_base ?
         </td>
         <td>
            <select name=\"new_av\">
	    <option value=\"\"></option>";

$select=wipe_control(file("./config_files/avocats.php"));
foreach($select as $option){
list($nom, $base)=split(",", $option);
$base2=substr($base, 0, 2);
if(gere("{$_SESSION["session_utilisateur"]}", "$base")) echo "<option value=\"$base2\">$nom
";
}
echo "
            </select>
         </td>
      </tr>
<tr><td><input type=submit value=\"$entete_choisir_base\"></td></tr>
</form></table>";
}
}
else{
echo "<html>
      <head>";
require("./title.php");
echo "</head>";

body("document.forms[document.forms.length -1].elements[0].focus()");
echo "$verify_sorry.
<br>

<a href=\"./index.php\">$verify_retry</a>";
}
           ?>
</td></tr></table>


         </body>
      </html>
Return current item: Prolawyer