Notifications
Clear all
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:
site:
Available for skin/mod commission! π
Posted : 14/02/2010 2:21 pm
