WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
How do i confirm numbers in the text box? (2 posts)

  1. ilan256
    Member
    Posted 3 years ago #

    Hey,
    How do i check that igot onley numbers in the text field?
    (For Phone number in Israel)
    can i use IsNumeric function or something like that?

    thanks,
    Ilan

    http://wordpress.org/extend/plugins/contact-form-7/

  2. flamenco
    Member
    Posted 3 years ago #

    Hi,
    That's an interesting question. Contact Form 7 is my favorite, but I just took a quick look, and I don't think it does field validation. And here's more info:
    http://contactform7.com/2009/11/18/text-fields/

    I used to use Cforms II, which does have validation, I think, and loads of features:
    http://www.deliciousdays.com/cforms-plugin/

    But I don't tend to use it anymore, because it's so fancy that sometimes I have had trouble using it, and Contact Form 7 is so beautifully simple that it just works. I also have no idea if Cforms II is WP3 compatible. If I recall, they had a licensing disagreement, so they pulled it out of the repository.

    But yes, you could probably hack the PHP code of Contact Form 7 yourself to do data checking.

    Shalom, Dave

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic