SchrimpDevil
Legacy Member
Hoi,
Ik heb volgend invulformulier:
<input type="checkbox" name="SectionUse[]" value="Campaigns">Campaigns
<input type="checkbox" name="SectionUse[]" value="Contacts">Contacts
<input type="checkbox" name="SectionUse[]" value="Leads">Leads
Bij het mailen van mijn formulier krijg ik echter een error terug.
PHP code:
Eerst variabele uit post halen
$SectionUse= $_POST["SectionUse"];
Dan wil ik deze tonen:
<tr><td><b>Sections: </b></td><td>
foreach ($SectionUse as $section)
{
"$section";
}
</td>
Hier loopt het echter mis, ik krijg een syntax error, unexpected T_VARIABLE
Kan iemand me helpen?
thanks!
Ik heb volgend invulformulier:
<input type="checkbox" name="SectionUse[]" value="Campaigns">Campaigns
<input type="checkbox" name="SectionUse[]" value="Contacts">Contacts
<input type="checkbox" name="SectionUse[]" value="Leads">Leads
Bij het mailen van mijn formulier krijg ik echter een error terug.
PHP code:
Eerst variabele uit post halen
$SectionUse= $_POST["SectionUse"];
Dan wil ik deze tonen:
<tr><td><b>Sections: </b></td><td>
foreach ($SectionUse as $section)
{
"$section";
}
</td>
Hier loopt het echter mis, ik krijg een syntax error, unexpected T_VARIABLE
Kan iemand me helpen?
thanks!

