Click here to Skip to main content
15,922,015 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: blinking cursor in a textbox control on webform Pin
NeverHeardOfMe28-May-05 8:55
NeverHeardOfMe28-May-05 8:55 
Generalretrieving currently logged on user with php Pin
sola oderinde27-May-05 20:34
sola oderinde27-May-05 20:34 
GeneralRe: retrieving currently logged on user with php Pin
alex.barylski29-May-05 12:55
alex.barylski29-May-05 12:55 
Generalunicode web page Pin
jbello26-May-05 7:22
jbello26-May-05 7:22 
GeneralRe: unicode web page OOps! Pin
jbello27-May-05 8:24
jbello27-May-05 8:24 
Questionhow to print webpage content? Pin
Mahantesh_Hongal26-May-05 2:18
Mahantesh_Hongal26-May-05 2:18 
AnswerRe: how to print webpage content? Pin
enjoycrack29-May-05 15:48
enjoycrack29-May-05 15:48 
Questionmple Sessions? Pin
25-May-05 10:10
suss25-May-05 10:10 
hey all i'm trying to set up a very simple intranet web.. thingy.
its just for peer evaluation paper work

right now i got a login.php that asks for username/pass which posts to login2.php which does authentication.

how do i set it up so that that user doesnt need to go through another logon screen, at least till they close their browser?

this is my login.php:
<?php
if (! isset($_SESSION['UIDn']))
{ echo '<html>';
echo '<body>';
echo '<h4>Evaluation Login</h4>';
echo '<form action="login2.php" method="post">';
echo '<p>User Name: <input name="uname" type="text" /></p>';
echo '<p>Password: <input name="pword" type="password" /></p> ';
echo '<input type="submit" value="Log in" />';
echo '</form>';
}
else
{ echo '<html>';
echo "<meta http-equiv='refresh' content='0;URL=http://roy/peereval/todo.php'>";
echo '<body>';
}
?>
</body>
</html>
=============
but it is always dropping into the if =( even after i validate on login2.php
<?php
session_start();
$UIDn=0;
$_SESSION['UIDn'] = $UIDn;
echo "<html><body>";

$uname = $_POST['uname'];
$pword = $_POST['pword'];

...

$UIDn = odbc_result($thingy,1);
?>
</body>
</html>


could any one point me in the right direction?


AnswerRe: mple Sessions? Pin
Anonymous27-May-05 17:01
Anonymous27-May-05 17:01 
QuestionHow to authencating user against Active directory through LDAP Pin
Nitinkg24-May-05 19:49
Nitinkg24-May-05 19:49 
AnswerRe: How to authencating user against Active directory through LDAP Pin
Colin Angus Mackay24-May-05 22:29
Colin Angus Mackay24-May-05 22:29 
GeneralRe: How to authencating user against Active directory through LDAP Pin
Nitinkg24-May-05 23:02
Nitinkg24-May-05 23:02 
Generalmouse cursor Pin
Enigma344024-May-05 3:31
Enigma344024-May-05 3:31 
GeneralRe: mouse cursor Pin
MoustafaS24-May-05 9:31
MoustafaS24-May-05 9:31 
GeneralRe: mouse cursor Pin
DavidNohejl24-May-05 9:45
DavidNohejl24-May-05 9:45 
GeneralRe: mouse cursor Pin
Enigma344024-May-05 19:27
Enigma344024-May-05 19:27 
GeneralRe: mouse cursor Pin
DavidNohejl24-May-05 9:43
DavidNohejl24-May-05 9:43 
GeneralWorkaround wanted Pin
jan larsen24-May-05 0:56
jan larsen24-May-05 0:56 
GeneralRe: Workaround wanted Pin
minhpc_bk24-May-05 3:53
minhpc_bk24-May-05 3:53 
GeneralRe: Workaround wanted Pin
jan larsen24-May-05 7:37
jan larsen24-May-05 7:37 
GeneralReturning Recordset from a function! Pin
wEb GuRu...23-May-05 6:45
wEb GuRu...23-May-05 6:45 
GeneralRe: Returning Recordset from a function! Pin
niansah24-May-05 21:43
niansah24-May-05 21:43 
Generalview ASP website from CD Pin
xaphod23-May-05 6:15
xaphod23-May-05 6:15 
GeneralRe: view ASP website from CD Pin
jan larsen24-May-05 2:47
jan larsen24-May-05 2:47 
GeneralDIV, DataGrid and IE Pin
sprout7423-May-05 2:52
sprout7423-May-05 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.