|
Posted by Marcin Dobrucki on 06/30/06 07:38
Ørjan Langbakk wrote:
> 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
I think David provided a solution already, but if you have probelms
digging through the if/else stuff in the future, pen and paper always
works for me. Draw a flowchart of it, and then walk through it a couple
of times.
Navigation:
[Reply to this message]
|