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

 Using checkbox to trigger a specific update

Print topic Send  topic

Author Message
Scotty

Posts: 20
Posted: 03/08/2005, 1:43 PM

Hi,

I'm quite new to code charge, MYSQL and PHP, so hopefully this doesn't sound too basic.

I've got a record grid that has a3 basic functions. Update, Add and Delete. However I have a checkbox for authorising the appreciate record. So if the user checks the checkbox (to authorise the record), and then clicks update, I need it the program to both update any fields which may have been modified, as well as to update the "User Authorised" a SQL column, which will be retrieved from the user's login profile.

I have set the checkbox (called checkboxauthorise - imaginative huh?) as boolean, which checked a value of 'true' and unchecked with a value of 'false'. I have added specific code (which I'm guessing is the right thing to do). Default value is unchecked.

The problem I'm having is that the checkboxauthorise doesn't appear to be holding the checkbox value as entered by the user. So even if the user hasn't checked the checkbox, the update is still occurring. Code is

		if ($this->CheckBoxAuthorise == True) { etc etc

If more info is needed, let me know and thanks for help/advice in advance... Hopefully this is something quite straight forward.

Scott.
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.