Re: if/else statement, form-check
- From: Ørjan Langbakk <pubblicc@xxxxxxxx>
- Date: Thu, 29 Jun 2006 13:28:28 +0200
Den 28.06.2006 22:27, skriblet BKDotCom følgende:
psudocode:
if ( invalid code )
redirect
elseif ( !email && !phone )
other redirect
Well, yes, but that doesn't really work the way I want it.
See, I have, first, a check for existing email - if there is no email present, I want it to check if there is a phonenumber entered, and if _both_ those conditions are false, then I want to redirect.
I do not wish to redirect after the first false, but after the second.
Have I misunderstood something, or?
--
mvh
Ørjan Langbakk
http://www.bergenpchjelp.no
http://www.cubic-design.net
.
- Follow-Ups:
- Re: if/else statement, form-check
- From: Umberto Salsi
- Re: if/else statement, form-check
- From: David Haynes
- Re: if/else statement, form-check
- References:
- if/else statement, form-check
- From: Ørjan Langbakk
- Re: if/else statement, form-check
- From: BKDotCom
- if/else statement, form-check
- Prev by Date: Re: Upload a file into DB
- Next by Date: Re: PHP email function
- Previous by thread: Re: if/else statement, form-check
- Next by thread: Re: if/else statement, form-check
- Index(es):