• I need to perform more complex form validation beyond the basic regex that is available. Is it possible to test form input on the server side using php?

    Specifically, I need to be able to confirm that a user’s collector card number is a valid one, using a technique that is similar to credit card number testing.

    Thanks.

    http://ww.wp.xz.cn/extend/plugins/si-contact-form/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kfukawa

    (@kfukawa)

    If server side validation is beyond the scope of this plugin, does anyone know how to add client-side validation beyond the basic regex offered by the plugin?

    I have a hard time believing that I’m the only person using this plugin who requires more complex validation than regex…

    Thanks.

    You can edit the contact-form-process.php and hack your own code in there.
    You would need to trigger the processing of your code based on the extra field number you are using for the collector card number. if you have multiple forms on the site you would also need to trigger by form number also.

    Thread Starter kfukawa

    (@kfukawa)

    Hi Mike,

    Thanks for your reply.

    Do you have any examples or code snippets on how to hack the code for custom validation?

    I guess if the only solution is to hack the core files, then any customization would be overwritten by a plugin upgrade, wouldn’t it?

    Thanks again for your help.

    custom code is a bit time consuming, I do not have the time, sorry.
    yes, any customization would be overwritten by a plugin upgrade

    Thread Starter kfukawa

    (@kfukawa)

    Hi again,

    I guess I’ll have to start from scratch instead of using a plugin. Oh well, thanks again for your help. If I didn’t have the custom validation requirement, your plugin would have been perfect.

    Keep up the good work!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Fast Secure Contact Form] server-side validation’ is closed to new replies.