breeze351
asked on
Vars not getting returned.
I'm not getting vars back from a user file. $_SESSION['Company_ID'] comes back as blank, but the other $_SESSION vars are ok.
Here's a screen print from the var(dump)
I'm attaching the index.php and the LoginChk.php. I did have this working. I don't know what I screwed up.
index.php
LoginChk.php
Here's a screen print from the var(dump)
array(56) { ["User"]=> string(6) "BREEZE" ["Password"]=> string(6) "351CLV" ["First_Name"]=> string(5) "Glenn" ["Last_Name"]=> string(8) "Davidson" ["E_Mail"]=> string(21) "glenn@langsystems.net" ["Security"]=> string(1) "9" ["P_Format"]=> string(1) "5" ["UserID"]=> string(4) "GJJD" ["LSI_Ver"]=> string(3) "4.1" ["Menu_No"]=> int(1) ["Last_Page"]=> string(9) "index.php" ["Save_Last"]=> string(0) "" ["Message"]=> string(0) "" ["Error"]=> string(1) "N" ["PForm"]=> string(1) "N" ["Survey_Count"]=> string(1) "0" ["Number"]=> string(0) "" ["Street"]=> string(0) "" ["Address"]=> string(0) "" ["Data"]=> string(0) "" ["Old_Data"]=> string(0) "" ["Misc"]=> string(0) "" ["Insert"]=> string(1) "N" ["Count"]=> string(1) "0" ["Up_Down"]=> string(0) "" ["North"]=> string(0) "" ["South"]=> string(0) "" ["East"]=> string(0) "" ["West"]=> string(0) "" ["Map_Dir"]=> string(0) "" ["Location"]=> string(1) "M" ["District"]=> string(0) "" ["UNI_Q"]=> string(0) "" ["Logo"]=> string(0) "" ["Food"]=> string(1) "N" ["Vent"]=> string(1) "N" ["Corner"]=> string(1) "N" ["Company"]=> string(1) "N" [u]["Company_ID"]=> string(0) "" ["Comp_ID"]=> string(0) "[/u]" ["Browser_Name"]=> string(15) "Mozilla Firefox" ["Browser"]=> string(7) "Firefox" ["Browser_Version"]=> string(4) "59.0" ["Platform"]=> string(7) "windows" ["Custom1_Name"]=> string(0) "" ["Custom1_Php"]=> string(0) "" ["Custom2_Name"]=> string(0) "" ["Custom2_Php"]=> string(0) "" ["Back_R"]=> string(2) "77" ["Back_G"]=> string(3) "148" ["Back_B"]=> string(3) "255" ["Fore_R"]=> string(3) "255" ["Fore_G"]=> string(3) "255" ["Fore_B"]=> string(3) "255" ["Logo_Print"]=> string(35) "L a n g S y s t e m s , I n c ." ["Logo_PDF"]=> string(17) "Lang_Logo_PDF.jpg" }
Here's a simple query with the results:SELECT `First Name`, `User_ID`, `Password`, `Company_ID` FROM users WHERE USER = 'BREEZE' and PASSWORD = '351CLV'
Glenn GJJD 351CLV 10018855
I'm attaching the index.php and the LoginChk.php. I did have this working. I don't know what I screwed up.
index.php
LoginChk.php
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can I kill himNope, sorry he is destined for promotion.
Why have accepted the answer you have when I told you exactly what the problem was and you've just confirmed it ???
I was wondering the same thing, Chris.
ASKER