Re: if/else statement, form-check



Ø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.

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


You seem to think this is a short-coming of the PHP language.
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-

.



Relevant Pages

  • Re: if/else statement, form-check
    ... if both are empty (invalid), ... can I do a check for criteria two _before_ the redirect? ... if code valiates, then send mail ...
    (comp.lang.php)
  • Re: if/else statement, form-check
    ... then I want to redirect. ... if(invalid email) ... so that the page somewhere.php can display the reason of the failure ... # request to display an empty FORM: ...
    (comp.lang.php)
  • Re: if/else statement, form-check
    ... if both are empty (invalid), ... Can you supply a set of input conditions and ... you want to evaluate a quad-state logic condition with if-then-else ... As of now, I have chosen to have name, email and phonenumber as obligatory fields - they all get checked, and they all need input or the error-page displays. ...
    (comp.lang.php)
  • Re: Get error message from Command prompt
    ... But I have not found a way to redirect the ... Invalid argument '12?3.txt' ... java TestFileName> op.txt ...
    (comp.lang.java.help)
  • Re: if/else statement, form-check
    ... Den 29.06.2006 17:43, skriblet David Haynes følgende: ... I do not wish to redirect after the first false, ... If you want to redirect if both are invalid, ... can I do a check for criteria two _before_ the redirect? ...
    (comp.lang.php)