Re: Problem with "switch ($to)"..
| From: | Rolf Brusletto | Date: | Fri, 26 Dec 2003 22:48:50 +0000 |
| Subject: | Re: Problem with "switch ($to)".. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173345@lists.php.net to get a copy of this message | ||
Labunski wrote:
Hello, thanks in advice and Merry Christmas! I'm a newbie in PHP, so I can't imagine how to add the "Part 1" to the "Part 2".. /// Part 1 //////////// switch ($to) { case "roman": $to = $address; break; case "none": // here should go the "Part 2", but I don't know how! break; } /// Part 2 /////////// (empty($from) || empty($message)) { header( "Location: ../eng/contact.htm" ); } Sorry for my bad english, Lab. Lab - its pretty simple actually...switch ($to) { case "roman": $to = $address; break; case "none": if (empty($from) || empty($message)) { header( "Location: ../eng/contact.htm" ); } break; } Hope this helps.. Happy holidays! -- Rolf Brusletto rolf[at]emailfeeds[dot]com http://www.emailfeeds.com