Posted by guitarromantic on 11/19/41 11:47
Thanks for the tips everyone, I've been experimenting.
Following this tutorial:
http://www.zend.com/zend/spotlight/code-gallery-wade7.php
I've made a several-step form to simplify the submissions.
Page 1: User selects the relevant authors from a list box.
Page 2: A form is populated for each item in the author array, like so:
"Review for author $author"
[textarea for review]
I then pass these values to the final page (as the Zend tutorial
suggests, with the fieldforwarder class). My issue then is that I want
to use their code but I'm using an array within an array:
foreach ($author as $value) {
echo "Review for author $value<br>\n";
echo "<textarea name=\"review_$value\" cols=\"32\"
rows=\"6\"></textarea><br>\n";
}
The code the Zend tutorial gives for the final page is like this:
$review = htmlentities($_POST['cust_name']);
How can I grab the values for the reviews placed in the textarea using
this method?
Navigation:
[Reply to this message]
|