• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Blank Form Response

New Here ,
Nov 28, 2006 Nov 28, 2006

Copy link to clipboard

Copied

Occasionally, on one of my sites, I get completely blank form responses.

On the page, I have some required fields, so there's no way that blank fields are getting through
In addition, I run occasional tests which all come out OK, so I'm not sure why blank forms are getting sent.

Can anyone offer a reason ?
TOPICS
Advanced techniques

Views

319

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 28, 2006 Nov 28, 2006

Copy link to clipboard

Copied

cfform uses javascript and the user has the option of disabling it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 28, 2006 Nov 28, 2006

Copy link to clipboard

Copied

How are you requiring fields? As Dan noted, if you're using javascript that can be disabled. If you're using hidden form fields with names like "myfield_required", it's possible that someone is submitting data to your program without using your form. The only way to be certain that required form data is being submitted is to test for it within your program. If someone submits a blank form, don't process it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 29, 2006 Nov 29, 2006

Copy link to clipboard

Copied

LATEST
Both posts above offer good advice.

As a rule I always use server side validation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation