CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to assign existing value from one form as default on other form on same page

Print topic Send  topic

Author Message
Zeljko Dakic
Posted: 11/04/2004, 9:32 PM


Hi,

I am almost done in my CC work (it really helps a lot on major things), I need help with following:

My page has few forms, but one displays member details and other is used to add records to database, I would like to make address from member details form default for add record value address. I tried this and that and couldn't make it work, please help.

Thanks,
Zeljko Dakic
Zeljko Dakic
Posted: 11/04/2004, 11:22 PM


OK figured it out. Huh!

global $sameds_neworder;
$db = new clsDBsameds();
$a=CCDLookUp("address","sameds_members","memberid=".$db->ToSQL(CCGetUserID(),ccsInteger),$db);
$db->close();
$sameds_neworder->address->SetValue($a);
klw
Posted: 11/05/2004, 7:37 AM

Here's a little less code ... :-)

global $sameds_neworder;
global $sameds;

$a=CCDLookUp("address","sameds_members","memberid=".$sameds->ToSQL(CCGetUserID(),ccsInteger),$sameds);
$sameds_neworder->address->SetValue($a);

Quote Zeljko Dakic:

OK figured it out. Huh!

global $sameds_neworder;
$db = new clsDBsameds();
$a=CCDLookUp("address","sameds_members","memberid=".$db->ToSQL(CCGetUserID(),ccsInteger),$db);
$db->close();
$sameds_neworder->address->SetValue($a);
:-)

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.