foreach problem.
Posted: Sun Oct 23, 2005 1:39 pm
the foreach in my code give me a syntax error....can't find what is wrong...her is the code...hope that some one can help me 
Burrito: Please use
Code: Select all
<?php
echo "<h2>Takk for din bestilling {$_GET['navn']}</h2>";
echo "Størrelse: <b>" . $_GET['str'] . "</b><br>";
if ( isset($_GET['fyll']) ) {
echo "Valgt fyll:<ul>";
foreach ($_GET['fyll'] as $fyllnavn => $avkrysset) {
echo "<li>$avkrysset (nøkkel er $fyllnavn)</li>";
}
echo "</ul>";
}
?>Code: Select all
tags when [url=http://forums.devnetwork.net/viewtopic.php?t=21171]posting code in the forum[/url].[/size]