Re: [PHP] form validation

2011-08-14 Thread Daniel P. Brown
On Sun, Aug 14, 2011 at 18:19, Ford, Mike wrote: > > The last part of that test is redundant, since if $_POST['market'] is > NULL isset($_POST['market'] will be FALSE. Good catch. Didn't even notice I typed that. Not that it would've done any damage, but a good reminder why code here is not

RE: [PHP] form validation

2011-08-14 Thread Ford, Mike
> -Original Message- > From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of > Daniel P. Brown > Sent: 12 August 2011 16:53 > > On Fri, Aug 12, 2011 at 11:42, Chris Stinemetz > wrote: > > I have a select menu created by a foreach loop. I am trying to > > validate that there wa

Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Geoff Shang
On Sun, 14 Aug 2011, Alekto Antarctica wrote: I have tried to implement a cookie to remember the login for 48 hours, but it still logs the user out after the default 24min for a session like this: * //We compare the submited password and the real one, and we check if the user exist

[PHP] Re: Login with Remember me Feature

2011-08-14 Thread Richard Riley
Tim Streater writes: > On 14 Aug 2011 at 14:23, Alekto Antarctica > wrote: > >> *function loggedin()* >> *{* >> * if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))* >> * {* >> * $loggedin = true;* >> * return $loggedin;* >> * }* >> *}* > > Why not justreturn true; > > An

Re: Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Tim Streater
On 14 Aug 2011 at 14:23, Alekto Antarctica wrote: > *function loggedin()* > *{* > * if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))* > * {* > * $loggedin = true;* > * return $loggedin;* > * }* > *}* Why not justreturn true; And what happens if your "if" doesn't evaluate t

Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Tamara Temple
On Aug 14, 2011, at 8:23 AM, Alekto Antarctica wrote: Hi guys! I have now tried to take some of your hints into consideration, by encrypting the password with md5 adding a salt. As some of you pointed out, this code is the work of a newbie, that is totally correct, so please bear with me ;) I

Re: [PHP] chained select with ajax

2011-08-14 Thread Chris Stinemetz
I was able to figure it out. Discovered the very useful tool firebug! Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Alekto Antarctica
Hi guys! I have now tried to take some of your hints into consideration, by encrypting the password with md5 adding a salt. As some of you pointed out, this code is the work of a newbie, that is totally correct, so please bear with me ;) I have tried to implement a cookie to remember the login fo

[PHP] Re: trying this again....

2011-08-14 Thread Michelle Konzack
Hello Tamara, I had this too and from an Admin (ome years ago) I know if there is an "[OT]" or "OT:" in the subject, the list reject the mail. Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant ## Development

[PHP] trying this again....

2011-08-14 Thread Tamara Temple
I didn't know the server would reject this, but I'd really like to know if anyone else has encountered this Begin forwarded message: From: Mail Delivery Subsystem Date: August 13, 2011 7:23:02 PM CDT To: tamouse.li...@gmail.com Subject: Delivery Status Notification (Failure) Delivery to