CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge -> Programming

 custom "input file" and validation - smth is wrong...

Print topic Send  topic

Author Message
holyboy
Posted: 06/29/2004, 7:07 AM

i have custom input file field in html form which is managed by custom action in record form. everything works, except validation.

my field is called j_cv, so using cc vars naming manner, i declared in custom action (in "Load all form fields into variables" section):
 $fldj_cv = get_param("j_cv");
and in validation section:
if(!strlen($fldj_cv))  
$srecordErr .= "ERROR: missing file<br>";

but i always receive error, even if input filed is not empty.
where is the mistake?
mamboBROWN


Posts: 1713
Posted: 06/30/2004, 5:31 AM

It looks like you are using PHP. Your statement should then be:

  
if(!strlen($fldj_cv))    
{  
$srecordErr .= "ERROR: missing file<br>";  
}  
 

instead of:
  
if(!strlen($fldj_cv))    
$srecordErr .= "ERROR: missing file<br>";  

Give it a try and let us know what happens...
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.