Thanks Miles.
That works nicely.
Regards
-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 10:29 PM
To: php-db@lists.php.net
Subject: RE: [PHP-DB] Login script help
When user has authenticated successfully, start a session
why not just create a simple single logon page and not include itthen on
sucessful login, redirect the user to the index page?
bastien
From: Haig Dedeyan [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Login script help
Date: Thu, 21 Dec 2006 16:36:11 -0500
Hi everyone,
My
-DB] Login script help
why not just create a simple single logon page and not include
itthen on
sucessful login, redirect the user to the index page?
bastien
From: Haig Dedeyan [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Login script help
Date: Thu, 21 Dec 2006 16:36:11
Dedeyan; php-db@lists.php.net
Subject: RE: [PHP-DB] Login script help
why not just create a simple single logon page and not include
itthen on
sucessful login, redirect the user to the index page?
bastien
From: Haig Dedeyan [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Login script
Here you go:
Table:
ID Login PW Admin
1 admin abc123 1
2 normal bcd234 0
3 normal2 cde345 0
PHP:
[BOF]
?php
if($_POST['login']) {
$result = mysql_query(select * from users where login = ' .
$_POST['login'] . ') or die(mysql_error());
if
Err...
As usual I forgot the most important part...
Add
session_start()
just above the
if($_POST['login']) {
row, or it won't work at all.. ;)
Or rather, it'll work, but no sessions will be saved.
Mike
On Apr 27, 2004, at 08:48, Mikael Grön wrote:
Here you go:
Table:
ID Login PW
This is kind of a big thing. Email me and I'll give you instructions/tips
on making it.
- Original message -
From: andy amol [EMAIL PROTECTED]
To: php php [EMAIL PROTECTED]
Date: Mon, 26 Apr 2004 17:15:27 -0700 (PDT)
Subject: [PHP-DB] login script
hi,
does anyone have a login script
try:
http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/
there are loads of pre done scripts you can reference.
Cheers
Jason
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] login
]
-Original Message-
From: SELPH,JASON (HP-Richardson,ex1) [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 31 de Janeiro de 2003 17:52
To: Matt; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] login script
try:
http://www.hotscripts.com/PHP/Scripts_and_Programs/User_Authentication/
there are loads
If they don't allow external connections then you won't be able to connect
directly from UltraDev, only from uploaded scripts.
Learn php, write them and run them!
Alternatively switch to a host which allows external connections?
No quick answers.
Peter
-Original Message-
From:
10 matches
Mail list logo