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

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.