Hey everyone...
I have a mail script where $message is the content for the email and calls a bunch of $_POST vars and then emails them to me... There's one section where i need an if statement to go thru a bunch of similarly named vars and put them in the mail just for nice formatting reasons (instead of calling each one individually, but i found that u can't have an IF statement inside $message...
So i'm trying to use .= instead and i now have this...
$message .=
for ($i = 1; $i <= 29; $i++) {
if ( $_POST['option$i'] != NULL)
<br>" . $_POST['option$i'] . " (" . $_POST['$i']. ")
}
I know it's jst meant to drop in there somehow when $message is called but doesn't seem to work. Am i not understanding how it's meant to work???
Please help. :queasy: