CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 get a form value PHP

Print topic Send  topic

Author Message
dale
Posted: 07/09/2002, 5:37 PM

I'm trying to get a form value in before show.
the form is named onepc and the field is DESC
I'm using: $frmVal = $onepc->DESC->Value;
When I put in echo $frmVal I just get 1 for the value of that field instead of the actual value.
Does anyone know what I'm doing wrong?

Thanks
PR
Posted: 07/10/2002, 2:37 AM

did you tryed this:

global $frmVal;
$frmVal = $onepc->DESC->Value;

jjtoubia
Posted: 07/11/2002, 12:13 AM

Use GetValue, not Value

$frmVal = $onepc->DESC->GetValue();
jjtoubia
Posted: 07/11/2002, 12:15 AM

if this is a Before_Show function, make sure you global in your array. If not then don't worry about it.

global $onepc;
$frmVal = $onepc->DESC->GetValue();
dale
Posted: 07/15/2002, 3:18 PM

It works great
Thank you

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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