- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
$bError=true;
do {
$logistType = $_REQUEST['logistType'];
if (!preg_match("|^\d+$|", $logistType)) { break; }
if ($_SESSION['cartaddon']['***'] and $logistType>=1 and $logistType<=5) {
} elseif (!$_SESSION['cartaddon']['***'] and $logistType>=3 and $logistType<=5) {
} else {
break;
}
$_SESSION['cartaddon']['logistType'] = $logistType;
$bError = false;
$text = $_REQUEST['text'];
$text = trim(strip_tags($text));
$_SESSION['cartaddon']['pozhelania'] = $text;
} while (0);
Я чего-то не понял, или в ПоХаПе все действительно _так_?
Просто очень редко использую do .. while() в коде
Всё ради этого.
вы кого успокаиваете-то?
ЫбыЕм ПыСы