Re: if/else statement, form-check
- From: David Haynes <david.haynes2@xxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 14:47:07 -0400
Ørjan Langbakk wrote:
[snip]
I might be dense, but it still isn't the problem. Of course I can check if both are empty (invalid), that's easy.You seem to think this is a short-coming of the PHP language.
Why doesn't PHP have an if/then/else way of doing things... or, can I do a check for criteria two _before_ the redirect?
something like:
if (not valid)
then (check criteria two)
if both = invalid, then redirect
if both = valid, then -> check code
if code valiates, then send mail
Do you have this coded in another language? If so, can you share that?
I profess that there has been so many messages back and forth about
this, that I am no longer sure what you are asking for.
Can you supply a set of input conditions (using email and phone) and
what you expect the outcome to be? From you latest post, it sounds like
you want to evaluate a quad-state logic condition with if-then-else
logic in a single pass, but I am so confused at the moment, that would
be a 'best guess' as to what you want.
-david-
.
- Follow-Ups:
- Re: if/else statement, form-check
- From: Ørjan Langbakk
- Re: if/else statement, form-check
- References:
- if/else statement, form-check
- From: Ørjan Langbakk
- Re: if/else statement, form-check
- From: BKDotCom
- Re: if/else statement, form-check
- From: Ørjan Langbakk
- Re: if/else statement, form-check
- From: David Haynes
- Re: if/else statement, form-check
- From: Marcin Dobrucki
- Re: if/else statement, form-check
- From: David Haynes
- Re: if/else statement, form-check
- From: Jerry Stuckle
- Re: if/else statement, form-check
- From: David Haynes
- Re: if/else statement, form-check
- From: Ørjan Langbakk
- if/else statement, form-check
- Prev by Date: Re: if/else statement, form-check
- Next by Date: Session Timeout
- Previous by thread: Re: if/else statement, form-check
- Next by thread: Re: if/else statement, form-check
- Index(es):
Relevant Pages
|