You are here: Re: if/else statement, form-check « PHP Programming Language « IT news, forums, messages
Re: if/else statement, form-check

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация