Posted by Craig Keightley on 05/24/05 13:51
I have two elements in a form , a text area (justification[]) and a hidden
field (prodID[])
I have the following code as a test:
foreach($_POST['justification'] as $reason) {
echo $reason."<br>";
}
foreach($_POST['prodID'] as $pID) {
echo $pID."<br>";
}
output
item reason
item reason 2
item reason 3
item reason 4
id1
id2
id3
id4
How can i edit the code as such so that the following out put is displayed:
item reason - id
item reason 2 - id2
item reason 3 - id3
item reason 4 - id4
Many Thanks for any help in advance
Craig
Navigation:
[Reply to this message]
|