PHP variable content disappears from one line to next
Posted: Fri 13. Jan 2006, 01:39
I have the following code in a contact form I am building (the phpwcms built in contact form breaks the application)
can anyone explain why the output is
The variable content has been lost from one line to the next
Code: Select all
[PHP]
if($_GET["to"]> ""){
switch ($_GET["to"]) {
case "president":
$email="email@domain";
$recipient = "The president";
break;
--SNIP--
}
echo(" sw1 = " . $recipient);
}
[/PHP]
[PHP]
echo(" sw2 = " . $recipient);
[/PHP]Code: Select all
val 1 = The president val 2 =