Re: [PHP] Links hierarchy maintenance

2008-03-09 Thread Adil Drissi
Hi Jessen, The question is how to make it aware of the context. Do you know any work dealing with that? Thanks --- Per Jessen [EMAIL PROTECTED] wrote: Adil Drissi wrote: Hi, Yes this is the correct way to do things. As i said, i'm using different styles for the menus links

Re: [PHP] Links hierarchy maintenance

2008-03-09 Thread Adil Drissi
Yes like that, but you can consider also that the vertical menu has different style for the link of the current page. Anyway it does not matter for this problem. Can you show us how your php function looks like? Or maybe you are just doing a test for each link for your function to know if it is

[PHP] Links hierarchy maintenance

2008-03-08 Thread Adil Drissi
Hi, I'm working on a site that is becoming more and more bigger (containing more links). Now the problem of links maintenance arises. An intuitive idea that i'm trying to do right know is calling php functions that will display every part of the site that is repetitive. For example left side menu

Re: [PHP] Links hierarchy maintenance

2008-03-08 Thread Adil Drissi
--- tedd [EMAIL PROTECTED] wrote: At 9:23 AM -0800 3/8/08, Adil Drissi wrote: I'm working on a site that is becoming more and more bigger (containing more links). Now the problem of links maintenance arises. An intuitive idea that i'm trying to do right know is calling php functions

[PHP] regular expressions question

2008-03-04 Thread Adil Drissi
Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted. I tried eregi('[a-z]', $fname) but this allows the

Re: [PHP] regular expressions question

2008-03-04 Thread Adil Drissi
Thank you guys, The answers you gave me not only solved the problem, but i included more characters like space and -. Thank you again --- Richard Lynch [EMAIL PROTECTED] wrote: On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote: Is there any way to limit the user to a set of characters

Re: [PHP] Session destruction problem

2008-02-23 Thread Adil Drissi
--- Adil Drissi [EMAIL PROTECTED] wrote: Hi, Below you'll find my code. I think now that the problem is in my algorithm, because the is created anytime the page is refreshed. But i don't know how to check if the client was logged out or it is a real new connexion to the page. As you

Re: [PHP] Session destruction problem

2008-02-20 Thread Adil Drissi
thank you tedd, I understood what you explained to me last time. I was wondering if there is another method to prevent that. Thanks --- tedd [EMAIL PROTECTED] wrote: At 2:45 PM -0800 2/19/08, Adil Drissi wrote: Hi, Below you'll find my code. I think now that the problem is in my

Re: [PHP] Session destruction problem

2008-02-19 Thread Adil Drissi
;nbsp;nbsp;; ? /body /html logout.php -- ?php session_start(); unset($_SESSION[sessioname]); $_SESSION = array(); session_destroy(); header(location: index.php); ? --- Richard Lynch [EMAIL PROTECTED] wrote: On Sat, February 16, 2008 2:31 pm, Adil Drissi wrote: I need

Re: [PHP] Session destruction problem

2008-02-17 Thread Adil Drissi
Is your session being set in any other place but your login page? No, just in the page just to which the form of login and password points. Looking for last minute shopping deals? Find them

Re: [PHP] Session destruction problem

2008-02-17 Thread Adil Drissi
Hi, I suppose this can be used to solve the problem i posted. Can you please tell me how, or send a link to ressource explaining that? Thanks --- Daniel Brown [EMAIL PROTECTED] wrote: On Feb 16, 2008 3:31 PM, Adil Drissi [EMAIL PROTECTED] wrote: Hi everybody, I need help with sessions

Re: [PHP] Session destruction problem

2008-02-17 Thread Adil Drissi
Hi, Thanks for the link, it is very interesting, but as the author says, the solutions are not perfect. I'm wondering how yahoo mail for example are doing, or maybe they are using something else (not php)? Thank you --- tedd [EMAIL PROTECTED] wrote: At 12:31 PM -0800 2/16/08, Adil Drissi

Re: [PHP] Re: Session destruction problem

2008-02-17 Thread Adil Drissi
Well, i'm doing all that. Maybe something is wrong in my code. I'll arrange my code in a way that it will be easy to run and i'll post it. I think like that, you'll see by yourself and you gonna help to fix that for sure. Thank you --- Shawn McKenzie [EMAIL PROTECTED] wrote: Adil Drissi wrote

[PHP] Session destruction problem

2008-02-16 Thread Adil Drissi
Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this is the case $_SESSION['sessioname'] =