passing _GET values to _POST

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

 



Hi all,

I have a screen get_collection.php which is supposed to be used to select something called 'data sets'. My database (the postgres database is not the problem, PHP is) has an entity called 'data series' which has a child entity called 'data sets'. The user is first shown a list of all the data series. He selects a subset and pushes a submit button. The database supplies the names of the children of the selected data series, which are then displayed in the scrolling list called 'data sets'.

My problem is getting the various screens in my application to talk to each other. I have another screen called edit_reference.php which is used to edit a reference with an id re_reference_id. Midway through this screen I want to link the reference of re_reference_id to data series and data sets chosen by the user by following a link from edit_reference.php to get_collection.php.

I thought I could just give re_reference_id to get_collection as an url variable. Unfortunately, this doesn't work. Pushing the submit button to actually select the data series of interest causes the $_GET to be forgotten. Printing the value of re_reference_id in a hidden inpput field -- which I thought for sure would end up in the $_POST array when I hit the get_data_series submit button doesn't work either.
Neither does just saying $_POST['re_reference_id'] = $re_reference_id.

Probably I should be using session variables here. But I think they will have their own problems since they will be written on edit_reference.php, remembered long after the call to get_collections, and may cause trouble later.


My page is

http://www.demog.berkeley.edu/~maryfran/memdev/get_collection.php?re_reference_id=74

I am going to attach the php code and hope it makes it through.

Mary Anderson


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux