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

Posted by Ψrjan Langbakk on 10/07/08 11:51

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

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация