Re: [PHP] password field validation

2009-03-12 Thread Daniel Brown
On Thu, Mar 12, 2009 at 16:04, Rodrigo Escares wrote: > prueba con trim() : > $pass=trim($_POST[PASSSWORD]); > if (empty($pass)) > { >   $GERROR="TRUE"; > } Incorrecto, Rodrigo. Tambien, utilice por favor solamente el ingles en esta lista --- usted puede encontrar la lista de usuario espanola

Re: [PHP] password field validation

2009-03-12 Thread Rodrigo Escares
prueba con trim() : $pass=trim($_POST[PASSSWORD]); if (empty($pass)) { $GERROR="TRUE"; } Atte. Rodrigo (09) 7 7996571 On Thu, Mar 12, 2009 at 4:05 PM, Jason Todd Slack-Moehrle < mailingli...@mailnewsrss.com> wrote: > Hi All, > > I have an input field with type="password". > > I am trying to

Re: [PHP] password field validation

2009-03-12 Thread Afan Pasalic
haliphax wrote: On Thu, Mar 12, 2009 at 2:39 PM, Jason Todd Slack-Moehrle wrote: if (empty($_POST[PASSSWORD])) { $GERROR="TRUE";} If that's a direct copy/paste from your actual code, there is an extra S in PASSWORD. Also, you should enclose the array key in quotes: if (empty($_

Re: [PHP] password field validation

2009-03-12 Thread Andrew Ballard
On Thu, Mar 12, 2009 at 3:39 PM, Jason Todd Slack-Moehrle wrote: >>> >>> if (empty($_POST[PASSSWORD])) >>> { $GERROR="TRUE";} >>> >> >> If that's a direct copy/paste from your actual code, there is an extra >> S in PASSWORD. Also, you should enclose the array key in quotes: >> >> if (empty($_POST[

Re: [PHP] password field validation

2009-03-12 Thread Afan Pasalic
Jochem Maas wrote: Afan Pasalic schreef: Andrew Ballard wrote: On Thu, Mar 12, 2009 at 3:05 PM, Jason Todd Slack-Moehrle wrote: Hi All, I have an input field with type="password". I am trying to do some error checking to see if the user puts a value in after they submit t

Re: [PHP] password field validation

2009-03-12 Thread haliphax
On Thu, Mar 12, 2009 at 2:39 PM, Jason Todd Slack-Moehrle wrote: >>> >>> if (empty($_POST[PASSSWORD])) >>> { $GERROR="TRUE";} >>> >> >> If that's a direct copy/paste from your actual code, there is an extra >> S in PASSWORD. Also, you should enclose the array key in quotes: >> >> if (empty($_POST[

Re: [PHP] password field validation

2009-03-12 Thread Jochem Maas
Afan Pasalic schreef: > > > Andrew Ballard wrote: >> On Thu, Mar 12, 2009 at 3:05 PM, Jason Todd Slack-Moehrle >> wrote: >> >>> Hi All, >>> >>> I have an input field with type="password". >>> >>> I am trying to do some error checking to see if the user puts a value in >>> after they submit the

Re: [PHP] password field validation

2009-03-12 Thread Jason Todd Slack-Moehrle
if (empty($_POST[PASSSWORD])) { $GERROR="TRUE";} If that's a direct copy/paste from your actual code, there is an extra S in PASSWORD. Also, you should enclose the array key in quotes: if (empty($_POST['PASSWORD'])) { $GERROR='TRUE'; } It is official I am a DOPE! Thank you, yes, I did not s

Re: [PHP] password field validation

2009-03-12 Thread Afan Pasalic
Andrew Ballard wrote: On Thu, Mar 12, 2009 at 3:05 PM, Jason Todd Slack-Moehrle wrote: Hi All, I have an input field with type="password". I am trying to do some error checking to see if the user puts a value in after they submit the form (i.e not left it blank) Here is what I have: on

Re: [PHP] password field validation

2009-03-12 Thread Daniel Brown
On Thu, Mar 12, 2009 at 15:05, Jason Todd Slack-Moehrle wrote: > > if (empty($_POST[PASSSWORD])) > { $GERROR="TRUE";} [snip!] > What am I doing wrong? Spelling. "Password" only has two S's. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilot

Re: [PHP] password field validation

2009-03-12 Thread Andrew Ballard
On Thu, Mar 12, 2009 at 3:05 PM, Jason Todd Slack-Moehrle wrote: > Hi All, > > I have an input field with type="password". > > I am trying to do some error checking to see if the user puts a value in > after they submit the form (i.e not left it blank) > > Here is what I have: > > on form: > Passw

[PHP] password field validation

2009-03-12 Thread Jason Todd Slack-Moehrle
Hi All, I have an input field with type="password". I am trying to do some error checking to see if the user puts a value in after they submit the form (i.e not left it blank) Here is what I have: on form: Password: size="15"> In PHP error checking: if (empty($_POST[PASSSWORD])) { $GERRO