0

For a program I'm working on, I need to do the following:

1. Starting with a single set of fields in a form, I need to be able to dublicate them (multiple identical form entries) without necessarily knowing how many there will be. I managed to do this, by incrementing a session variable each time the appropriate form button was clicked, then putting the form-building stages inside a for loop that runs until it hits that variable's limit. Assuming I'm reading this correctly, what I've done leaves me with a set of arrays; one for each of the form fields.

2. Now, however, I need to be able to redisplay these fields back to the screen afterwards. I'm having trouble with this, because I can't figure out how to get the $_POST[] command to recognize my internal array. Every time I've tried so far, I've gotten errors. Is this even possible, and if so, how is it coded?

Thanks in advance,
-EnderX

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by sn4rf3r
0

can you run

print_r($_POST)

that will display the array, then you can refer to the embedded array like

$_POST['myarray']['anotherarray']['yetanotherarray']

make sence?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.