je veux creer une page d'authentification et j'ai essaye d'utiliser ce scripte mais ça marche pas si quelqu'un pourra m'aider plus je lui serai reconnaissant merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php session_start();?>
<html>
<head/>
<body>
<from action="index.php"method=POST>
username<input type=text name='USER'> <br/>
password<input type=password name='PASS'>
<input type=submit value="go"><p>
</from>
<?php
$USER=$_POST['USER'];
$PASS=$_POST['PASS'];
$LOGIN=$_get['LOGIN'];
 if($LOGIN=='yes'){
include(connexion.php);
    $query="select count(IDUSER) FROM LOGIN";
$query = " where USER='$USER' AND PASS='$PASS'";
$get=ora_do($query);
$result=ora_getcolumn($get);
if($result=1)echo "login fault";
else{
echo "lofin succesor";
$_session['USER']=$USER;
};
};