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

Linux, Apache, MySQL, PHP

 
AnswerRe: how to preg_replace the last comma? Pin
Peter_in_278026-Jul-11 14:58
professionalPeter_in_278026-Jul-11 14:58 
QuestionUpdate multiple rows in a dynamic table Dreamweaver CS5.5 Pin
sir_amin16-Jul-11 22:32
sir_amin16-Jul-11 22:32 
AnswerRe: Update multiple rows in a dynamic table Dreamweaver CS5.5 Pin
Gerben Jongerius17-Jul-11 3:17
Gerben Jongerius17-Jul-11 3:17 
GeneralRe: Update multiple rows in a dynamic table Dreamweaver CS5.5 Pin
sir_amin17-Jul-11 3:44
sir_amin17-Jul-11 3:44 
Questionsamba question... Pin
Albert Holguin8-Jul-11 9:27
professionalAlbert Holguin8-Jul-11 9:27 
AnswerRe: samba question... Pin
Albert Holguin8-Jul-11 11:06
professionalAlbert Holguin8-Jul-11 11:06 
AnswerRe: samba question... Pin
Jörgen Sigvardsson4-Sep-11 8:33
Jörgen Sigvardsson4-Sep-11 8:33 
Questionproblem with session varaibles Pin
MacRaider48-Jul-11 7:01
MacRaider48-Jul-11 7:01 
What I'm trying to do should be simple but for some reason it's not. All I want right now is to display one of my session variables on the page (this way I know it's what I think it is).
I have <td><input name="myusername" type="text" id="myusername" style="width:150px"></td> on the first form to get the value and then session_register("myusername"); on the next page to assign the value to the session variable.
I then have (this is the very top of the page (page 3))
<?php
// Check if session is not registered , redirect back to main page.
// Put this code in first line of web page.
session_start();
if (!session_is_registered(myusername)) {
    header("location:login.php");
}
?>
Test
<?php
$test = $_SESSION["myusername"];
echo $test;
?>

On the "last" page... the page isn't redirecting so I know the value is "good" but for some reason I can't get it to display. It's just displaying 'Test'...
GeneralRe: problem with session varaibles Pin
MacRaider48-Jul-11 7:54
MacRaider48-Jul-11 7:54 
GeneralRe: problem with session varaibles Pin
MacRaider48-Jul-11 8:42
MacRaider48-Jul-11 8:42 
AnswerRe: problem with session varaibles Pin
MacRaider48-Jul-11 7:53
MacRaider48-Jul-11 7:53 
GeneralRe: problem with session varaibles Pin
Thomas.D Williams21-Jul-11 5:08
Thomas.D Williams21-Jul-11 5:08 
GeneralRe: problem with session varaibles Pin
MacRaider421-Jul-11 5:18
MacRaider421-Jul-11 5:18 
GeneralRe: problem with session varaibles Pin
Thomas.D Williams21-Jul-11 5:34
Thomas.D Williams21-Jul-11 5:34 
GeneralRe: problem with session varaibles Pin
MacRaider421-Jul-11 5:39
MacRaider421-Jul-11 5:39 
QuestionTrying to set more than one style at a time without CSS... [modified] Pin
Joan M6-Jul-11 23:40
professionalJoan M6-Jul-11 23:40 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 4:47
professionalJoan M7-Jul-11 4:47 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 5:30
professionalJoan M7-Jul-11 5:30 
AnswerRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 3:12
Graham Breach7-Jul-11 3:12 
GeneralRe: Trying to set more than one style at a time without CSS... [modified] Pin
Joan M7-Jul-11 3:25
professionalJoan M7-Jul-11 3:25 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 3:54
Graham Breach7-Jul-11 3:54 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 4:01
professionalJoan M7-Jul-11 4:01 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 4:18
Graham Breach7-Jul-11 4:18 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Joan M7-Jul-11 4:45
professionalJoan M7-Jul-11 4:45 
GeneralRe: Trying to set more than one style at a time without CSS... Pin
Graham Breach7-Jul-11 5:35
Graham Breach7-Jul-11 5:35 

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.