CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 CCS Form's POST method - CCGetFromPost doesn't work

Print topic Send  topic

Author Message
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
View profile  Send private message
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?
View profile  Send private message
GeorgeS

Posts: 206
Posted: 10/03/2008, 11:03 PM

The same page.
_________________
GeorgeS
View profile  Send private message
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.
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.