WordPress.org

Support

Support » Plugins and Hacks » WP_contact Form Enhancement

WP_contact Form Enhancement

  • (the one by Ryan Duff)

    Guess I need Help with the php,

    because I’m not familiar enough with the syntax and stuff.

    No #1
    my (wrong )phone-verification, looks like this:


    if (!ereg($_POST['wpcf_phone']))('^([0-9])+([_-/]){16})$', ($_POST['wpcf_phone']))) {
    $ok = false; $reason = 'empty';
    }

    Do YOU know how to write?

    And here’s No #2:

    As sort of an anti spam tool, I put in a
    select list on top, where the selectet value is
    “choose:”.
    Now if its value is neither ‘Mr.’ nor ‘Ms.’ but ‘choose’ at submit,
    it shouldn’t let it roll.


    if (($_POST['wpcf_your_title']) == "Choose: ") {
    $ok = false; $reason = 'empty';


    Here’s the whole …php.txt file

    Who knows and writes it down here ?
    Thanks here, Frank

  • The topic ‘WP_contact Form Enhancement’ is closed to new replies.
Skip to toolbar