Notifications
Clear all

[SOLVED] eFic doesn't seem to like arrays in arrays.

1 Posts
1 Users
0 Reactions
1,038 Views
 Elle
(@jenny)
Posts: 594
Honorable Member
Topic starter
 

This works out of an eFic environment, but on an eFic page (using template.php as a basis) it doesn't like things like this:

<?php  $output .= "<form method="post" id="settingsform">r
<fieldset>r
<div><label for="author">Author</label> <input type="text" class="textbox" name="noms[author]" /></div>r
<div><label for="story1">Story #1</label> <input type="text" class="textbox" name="noms[story][]" /></div>r
<div><label for="story2">Story #2</label> <input type="text" class="textbox" name="noms[story][]" /></div>r
<div><label for="story3">Story #3</label> <input type="text" class="textbox" name="noms[story][]" /></div>r
<div class="center"><input type="submit" name="nominate" value="Submit Nominations" /></div>r
</fieldset>r
</form>r";
?>

On submit, on print_r($_POST) it will show the value for noms[author] but it doesn't show the array values for $noms[story]. It just hits it with: "story=> Array". I can't separately print_r or foreach $noms[story] either.

Is this normal behaviour?

Sorry if this isn't making sense. Not sure how else to explain it.

ETA: just using story[] works juuuust fine. πŸ˜‰


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 14/02/2010 2:21 pm
Share: