passing checkbox & text field value in php
<p>I'm trying to pass a text value field over to the next page for every checkbox selected, but I'm only getting the last text fields value, example:</p>

<pre><code>checkbox textfield
selected ABCD
selected ABCDE
</code></pre>

<p><strong>I am only getting back the ABCDE every time</strong></p>

<p><strong>page1.php</strong></p>

<pre><code>echo "&lt;td width='10px'&gt;&lt;input name='question[$rowid][]' type='checkbox' value='1' /&gt;&lt;/td&gt;";
echo "&lt;td width='230px'&gt;&lt;input name='newname' type='text' value='$certn'/&gt;&lt;/td&gt;";
</code></pre>

<p><strong>page2.php</strong></p>

<pre><code>foreach ($_POST['question'] as $key =&gt; $ans) {
$nn = $_POST['newname'];
echo $key . $nn;
echo "&lt;/br&gt;";
}
</code></pre>

<p>Help will be greatly appreciated</p>
