I've been trying for 2 days now to solve this problem, which should be
pretty simple, but it is turning off to not be as simple.
I am trying to pull data out from a form that was POSTed on a previous
page. The code that I have that works is below:
<?php
for ($i = 2; $i <= $stoped; $i++) {
echo '<tr>'
.'<td>Step '."$i".'</td>'
.'<td>Input X</td>'
.'</tr>' ;
}
What I need to do is replace "Input X" with $step1, $step 2, ect..
until $stoped is reached. Before this code I added lines such
$step2 = $_POST["step2"] ;
$step3 = $_POST["step3"] ;
$step4 = $_POST["step4"] ;
to try to isolate the problem. I would perfer to be able to put
$_POST["step2"] directly in the for loop. All of my tries though
ened up with me just printing the line and not pulling the data from
the form.
I was also looking at foreach() and thought this might be what I am
looking for. Something that will loop through the $_POST array.
However what I have tried so far has not worked.
--
Any help would be greatly appreciated
Thanks
Blaine Hilton