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

 Update with hidden field

Print topic Send  topic

Author Message
franky_1
Posted: 04/17/2003, 4:02 AM

hi

I'm a newbie to CC, and I' m having problems doing a manual update.
When I'm on a record page and doing an update, there is a Before Update event that also updates another field.

The problem comes in the WHERE clause of the SQL:

$sSQL = "update fm_user set " .
"cv_show = " . tosql($fldcv_file, "Text") .
" where UID = " . tosql($fldUID, "Number");

$sSQL .= $db->query($sSQL);

when UID is a textbox this works, when it's hidden it doesn't.

Can anyone please help me?
maf
Posted: 04/17/2003, 7:12 AM

Hi,

It seems that CC has a bug when programed with PHP4. I also had the problem of loosing the variable when it is hidden in the form. It only works if it is a textbox.

If you try to associate the hidden variable to a session variable it also doesn't work.

I managed it using the textbox and verifying its contents before updating the database.


   


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.