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



I have a list of columns being retrieved from a function,
select_groups(), as an array.

These are being using to dynamically generate a form.

The form is used post to another page for processing.

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:

<?php

$my_array4 = select_groups("group");

foreach ($my_array4 as $v_element) {
$$_POST[$v_element['column_name']]=pg_escape_string(trim($_POST[$v_element['column_name']]));
}

?>

I know I'm close.  Any tips?

Thanks,
Eric



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 / webmaster@blu.org