Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: Plz help me!!!

  1. #1
    Regular Coder
    Join Date
    Jan 2010
    Posts
    105
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Lightbulb Plz help me!!!

    Alright before i go really crazy, can someone be very kind and help me? I have 2 questions, plz if someone can answer them i would be very happy.

    Q1 - I have downloaded 2 scripts, one for a login function and the second for the message function. If im thinking right i have to write the session of the login function in this are of the message function: $userfinal=$_SESSION['session_name'];

    Is it the red area, i should change to the NAME of my login-session?

    Q2 - How can i now what the name of my session is? i have downloaded the login script here from, do you find anything like the name of the session for this script?

    http://www.evolt.org/node/60384

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    The red bit is the name of the variable in the session array NOT the name of the session.

    You don't need to name the session or worry about its name. All you need to do is name the variable and read from / write to like a normal array.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    Regular Coder
    Join Date
    Jan 2010
    Posts
    105
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tangoforce View Post
    The red bit is the name of the variable in the session array NOT the name of the session.

    You don't need to name the session or worry about its name. All you need to do is name the variable and read from / write to like a normal array.
    Thanks for ur answer! But i dont really understand what the problem causing that my message script dosnt get noticed by your signed in username. So i thoight its prpblem with the session :/ should i post amything more helpful sovi can get my help?

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    First of all there are more than 2 scripts on that evolt page that you needed to download and use.

    Secondly I have no idea what message you are talking about. You've not told us what the message says at all.

    You started this topic with 2 questions and now you're randomly telling us about a message and you don't know what causes it. Unless you tell me what is wrong i cannot help.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #5
    Regular Coder
    Join Date
    Jan 2010
    Posts
    105
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Im really sorry, for explaing my situation so bad. Im not so in english, so i will give a try. I hope this will be more helpful for you to understand my problem.

    I have downloaded 2 scripts:

    1 - Member loginscript from (http://www.evolt.org/node/60265)
    2 - Message script from (http://www.astahost.com/Private-Mess...em-t18247.html)

    So know i have to integreate those scripts, so members from the first loginscript can send from the second message script. And i have in weeks trying to contact the one who wrote the script with the message function, but as you see they post a thread for 4 years ago, and i cant contact them for any help! So i thought you maybe could figuer, how i can intergreate those too script. I have already mades so you can login and then go and send a message. But the message script, dosn't recognize wich usesr is sending this message (thought you are logged in). So the inbox for the message dont either shows your message.

    So i thought its a problem with the session, that the message script should have some place that i write wich session the login script is in.

    Im really sorry, because i explain everything so bad, and i really know how hard maybe this is to figure out, but i have put more than 2 weeks on this, and i cant even find a solution for my problem. So im very thankfull if someone could put a bit of their worthfull time to help me

  • #6
    Regular Coder
    Join Date
    Jan 2010
    Posts
    105
    Thanks
    18
    Thanked 0 Times in 0 Posts
    I'm thankful if someone could help me here :/

  • #7
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    Well perhaps you can post some code..
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #8
    Regular Coder
    Join Date
    Jan 2010
    Posts
    105
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tangoforce View Post
    Well perhaps you can post some code..
    Ohh of course i can! But wich code is you need to fix this problem? There is some pages with codes, so i thought if i explainder the situation, you here will maybe figure out what sort of code you have to look for, solving this question.

    When intergrating a Message code with a Login code, is it the session-page i have to modify? i can post the code for it. Sorry if i sound a bit of newbie at php, but im really doing my best


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •