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 -> PHP

 populate a hiden field in a record from parameter

Print topic Send  topic

Author Message
crush899

Posts: 22
Posted: 06/05/2012, 10:53 AM

Hi all-

I need help retrieving a parameter "order_id" and populating the hidden field "order_id" in a record which is being inserted into via the form "hcpc" with the parameter.

I have tried inserting code into the page's beforeshow event but I can not get this to work.

i've tried the following code:

global $hcpc;
global $Conection2;
$hcpc->order_id->SetValue(CCDLookUp("order_id", "emr_sv1_2400", "order_id=" . CCGetFromGet("order_id", "0", $Conection2));

I know this wrong but I need to understand why and how to make this work consistently.

Any assistance and knowledge is appreciated.
View profile  Send private message
DataDoIT
Posted: 06/05/2012, 11:16 AM

For your hidden field, you can either:

1. Set the Default Value to CCGetParam("order_id", ""). That's under
the Data tab for the hidden field control.

2. Use the Retrieve Value for Control action in the hidden field control
Before Show event. Same as above set to CCGetParam("order_id", "").

crush899

Posts: 22
Posted: 06/05/2012, 11:34 AM

Thank you very much that worked nicely.
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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