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