View Single Post
Old 08-19-2009, 11:05 AM   #3 (permalink)
niconiko
The Visitor
 
Join Date: Aug 2009
Posts: 2
Thanks: 1
niconiko is on a distinguished road
Default

Thank you sketchMedia.

If I can impose a bit more...

I tried combining the two foreach structures thus:

PHP Code:
<?php
foreach($_POST as $key => $val)
{
if (
$val == "Array")
  {
    foreach(
$_POST['Vote101'] as $opt)
    {
    echo 
$opt '<br />';
    }
  } else {
   echo 
$key .' is: ' $val  '<br />';
       }
}
?>
Probably obvious to you, this resulted not in what I expected but in:

Vote100 is: Milk
Vote101 is: Array

I'll try to figure this out on my own, but...

Last edited by codefreek : 08-20-2009 at 08:03 AM.
niconiko is offline  
Reply With Quote