sending mail

Hi

i have a form that i am trying to send in php using smtp. everything works fine except for one little problem that is bothering me. The form has data that requires two arrays, they store fine. The problem comes in trying to get them to display in the message that is sent. I am trying to use a for loop. Here is the code

    $MESSAGE_BODY='<table width="488" border="0" cellpadding="3" cellspancing="0" align="center" style="font-size:12px">
                        <tr>
                          <td width="156"><span class="style1">Full Name:</span></td>   <td>'.$_POST["name"].'</td>
                        </tr>
                        <tr>
                          <td><span class="style1">accountno:</span></td>                 <td>'.$_POST["accountno"].'</td>
                        </tr>
                        <tr>
                          <td><p class="style1">Date:</p></td>                          <td>'.$_POST["date"].'</td>
                        </tr>
                        <tr>
                        'for ($i=1; isset($meter[$i]) && isset($meterreading[$i]) ; $i++)
                        {'
                          <td><span class="style1">meter</span></td>                   <td>'.$_POST['meter[$i]'].'</td>
                        </tr>
                          <tr>
                          <td><span class="style1">meterreading</span></td>            <td>'.$_POST['meterreading[$i]'].'</td>
                        </tr>
                        '}'
                      </table>';

When i try to run it, it says “unexpected for” Please help d

Sponsor our Newsletter | Privacy Policy | Terms of Service