Skip to main content
February 12, 2009
Question

form validation

  • February 12, 2009
  • 3 replies
  • 735 views
I've got a bout 150 page website. I use the cfform tags and use validations on some of the inputs. Most of the validations work just fine but on about 4 of the pages, it dont. for ex one of the forms is just a 2 item comment form where the user adds their name and a breif comment about a story. both fields are required but the form will process if I just click submit with no date in either field

Hope someone can point me in the right direction

Thanks
Craig
This topic has been closed for replies.

3 replies

ajithman
Inspiring
February 12, 2009
Craig,
Are there any included pages in your page <cfinclude> that submits?
It would be helpful if u can share some code regarding this.
Inspiring
February 12, 2009
Craig,

Can you post some sample code for the forms that give you problems? On the page with two forms (the search and the comment one), do both forms have a unique ID attribute? They probably do but wanted to make sure!
February 12, 2009
Ok one moer thing I just noticed. besides the form i have above, I had another form further up the page that was just a search box with one entry. If I remove that component from my page, the validation now seems to work. So my problem just changed, I need both forms on the same page. maybe remove the validation from the search box.