Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] php foreach variable variable post

> From: Eric Chadbourne <eric.chadbourne at>

>I want to generate the list of columns again, put those column names
>into $_POST[] to get the values made by the user in the form.
>Something like:
>$my_array4 = select_groups("group");
>foreach ($my_array4 as $v_element) {
>I know I'm close.? Any tips?

I'm not entirely sure I understand what you're trying to accomplish.? I thought $_POST was sort of "incoming-only", so if you're trying to prepopulate it for the 2nd page, I think you need to possibly use hidden input fields instead to pass the values forward.? On the other hand, if you're trying to get variables named for each incoming value, have you looked at the import_request_variables function?

Perhaps a short concrete example of your end game would be helpful.


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /