Click here to Skip to main content
15,896,730 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Application Scope Array Pin
cjoki5-Jan-11 10:42
cjoki5-Jan-11 10:42 
GeneralRe: Application Scope Array [modified] Pin
vb develop6-Jan-11 2:44
vb develop6-Jan-11 2:44 
GeneralRe: Application Scope Array Pin
cjoki6-Jan-11 4:53
cjoki6-Jan-11 4:53 
Questionhttp post response id capture Pin
0b4m44-Jan-11 22:54
0b4m44-Jan-11 22:54 
AnswerRe: http post response id capture Pin
cjoki5-Jan-11 4:54
cjoki5-Jan-11 4:54 
AnswerRe: http post response id capture Pin
47_MasoN_476-Jan-11 9:59
professional47_MasoN_476-Jan-11 9:59 
GeneralRe: http post response id capture Pin
0b4m410-Jan-11 5:42
0b4m410-Jan-11 5:42 
QuestionSession destory error Pin
SRJ922-Jan-11 3:30
SRJ922-Jan-11 3:30 
hi, i have created a member log in system which will change a page which is included on the homepage....
Ok, now when i log out it destroys the session fine but then i get this error
"Notice: Undefined index: logged in ttab.php on line 4",

how do i get rid of the error because on other pages it seems to go away ...

Code for file which displays depending on session ... (ttab.php)
<html><style>div{font-family:Arial;}</style><body>
<?php
session_start();
if (!($_SESSION['logged']== true))
{
echo"<a href='memlogin.php?msg=0' id='flink'><div>Register/Log In</div></a>";
}else{
$name = $_SESSION['user'];
echo"Welcome $name, &nbsp<a href='account.php' id='flink'>Account Options</a>&nbsp|&nbsp<a href='ref/logout.php'id='flink'>Log Out</a>";
}
?>
</body></html>


Process that the log out does ... (logout.php)
//Logout process
session_start();
session_destroy();
header("location: ../index.php");

AnswerRe: Session destory error Pin
Graham Breach2-Jan-11 23:14
Graham Breach2-Jan-11 23:14 
QuestionNot sure what it's called Pin
MacRaider428-Dec-10 2:47
MacRaider428-Dec-10 2:47 
AnswerRe: Not sure what it's called PinPopular
Smithers-Jones28-Dec-10 2:59
Smithers-Jones28-Dec-10 2:59 
GeneralRe: Not sure what it's called Pin
MacRaider428-Dec-10 3:06
MacRaider428-Dec-10 3:06 
GeneralRe: Not sure what it's called Pin
Smithers-Jones29-Dec-10 11:02
Smithers-Jones29-Dec-10 11:02 
QuestionBest PHP Webmail system to access mail remotely Pin
mario202726-Dec-10 19:14
mario202726-Dec-10 19:14 
AnswerRe: Best PHP Webmail system to access mail remotely Pin
Gerben Jongerius26-Dec-10 20:40
Gerben Jongerius26-Dec-10 20:40 
AnswerRe: Best PHP Webmail system to access mail remotely Pin
shamly6-Jan-11 19:01
shamly6-Jan-11 19:01 
Questionmultiform post data using http thingies Pin
0b4m422-Dec-10 23:36
0b4m422-Dec-10 23:36 
AnswerRe: multiform post data using http thingies Pin
cjoki23-Dec-10 4:48
cjoki23-Dec-10 4:48 
QuestionConverting CGM to PDF (A4 only) Pin
pfsWrite21-Dec-10 20:47
pfsWrite21-Dec-10 20:47 
QuestionSQL to multidimenisonal array [modified] Pin
MacRaider420-Dec-10 8:10
MacRaider420-Dec-10 8:10 
AnswerRe: SQL to multidimenisonal array [modified] Pin
Luc Pattyn20-Dec-10 8:35
sitebuilderLuc Pattyn20-Dec-10 8:35 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider420-Dec-10 8:43
MacRaider420-Dec-10 8:43 
GeneralRe: SQL to multidimenisonal array [modified] Pin
MacRaider420-Dec-10 9:29
MacRaider420-Dec-10 9:29 
GeneralRe: SQL to multidimenisonal array Pin
Luc Pattyn20-Dec-10 10:25
sitebuilderLuc Pattyn20-Dec-10 10:25 
GeneralRe: SQL to multidimenisonal array Pin
MacRaider420-Dec-10 14:46
MacRaider420-Dec-10 14:46 

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.