GeorgeS
Posts: 206
|
| Posted: 10/02/2008, 3:49 PM |
|
Hi,
My form has Preserve Parameters set to GET and POST
I need this form to submit all values through POST only and I need to get all submitted values using CCGetFromPost .
CCGetFromPost doesn't get anything
CCGetFromGet or CCGetParam both work by parsing querystring.
If I replace action="{Action}" with action="index.php" and Preserve Parameters to 'None' then CCGetFromPost gets all values and I have an empty query string.
My question is:
why CCGetFromPost or $_POST[''] do not work with Preserve Parameters set to 'GET and POST'?
_________________
GeorgeS |
 |
 |
materix
Posts: 161
|
| Posted: 10/03/2008, 2:24 PM |
|
Is it the same page that you post from and to, or two different pages?
|
 |
 |
GeorgeS
Posts: 206
|
| Posted: 10/03/2008, 11:03 PM |
|
The same page.
_________________
GeorgeS |
 |
 |
materix
Posts: 161
|
| Posted: 10/06/2008, 5:04 PM |
|
Is depends where you insert your code.
It should work if you place CCGetFromPost in AfterInitialize for the page.
|
 |
 |
GeorgeS
Posts: 206
|
| Posted: 10/08/2008, 3:42 PM |
|
I have created a new page with a record form that has one text box and one label that will be getting a value from that textbox.
Preserve Parameters are : GET and POST
Page_OnInitializeView
global $manufacturers;
$manufacturers->Label1->SetValue(CCGetFromPost("mn_name",""));
shows nothing
---------------------------------------------------------------------
$manufacturers->Label1->SetValue(CCGetFromGet("mn_name",""));
shows the correct value from the textbox
------------------------------------------------------------------
materix,
I'm interested if CCGetFromPost actually works for you in the example like this one?
What I'm not understanding is what does it mean: "Preserve POST params" it I'm not able to get them?
_________________
GeorgeS |
 |
 |
|