|
-
Jul 8th, 2003, 09:50 AM
#1
Thread Starter
New Member
How 2 specify conditions in the Message of the mail body
Hi Everyone ,
I am posting my first message regarding the Contents of the Message in a body used for emailing in PHP
Just after the <TD> i have a condtion which checks whether a value exists in a variable or not, if it exists then display 1.gif and if there's nothing in the variable then display 2.gif. But the following code of mine gives a Parse Error.
i have my message set as
/* message starts here*/
$message = '
<table width=760 border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top>'.
if($var=="abc")
{
.'<img src=1.gif>'.
}
else
{
.'<img src=2.gif>'.
}
.'</td>'
/*message ends here*/
I get an error on the line where i am concatinating 1.gif.
Could any one explain whats the problem in my code
Thnx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|