CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Compare submit value of a form with stored value

Print topic Send  topic

Author Message
Alex. V.
Posted: 02/13/2002, 10:14 PM

Hi,

I am creating an application in which a user submit their choices from selecting radio buttons. Some Values of these choices are stored in a database table field nameed "PRE-RECORD" . How can I compare these stored value with the user's submit value (When Submit) and Calculate some result say How many submit answer is equla to the PRE-RECORD answers ?

Let me know Urgently. Can Anyone Help me in this.

Alex

Nicole
Posted: 02/14/2002, 4:57 AM

Alex,
to compare stored value with the submit value use the following code in beforeUpdate event:
ASP
stored = dLookUp("table_name", "lookup_field_name", "primary_key_name="& ToSQL(pPKprimary_key_name, "Number"))
if fldfield_name = stored then
'any code
end if

PHP
$stored = dLookUp("table_name", "lookup_field_name", "primary_key_name=". ToSQL($pPKprimary_key_name, "Number"));
if ($fldfield_name == $stored)
//any code

   


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.