CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Error Reporting on upload form

Print topic Send  topic

Author Message

Posts: 48
Posted: 10/09/2016, 1:29 AM Quote message

I have an img upload form, I would like to create an error message if the user does not select an image.
In CCS I have set the upload component as a required field but this does nothing, so I set the field in the data base to required field, this now returns.
" Database Error: Column 'msg_img' cannot be null "
I would the message to read some thing like "You forgot the Image" but can not figure out how to use the error control for the form .
Any examples or advise welcome .
View profile  Send private message
Posted: 10/09/2016, 8:20 AM Quote message

Turn off the Required Yes setting. Then, in the Events tab for the
upload control add a Validate Required Minimum Length event and set to
1, along with your custom error message.

Add new topic Reply to topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.