Events Made Easy Forums Bug fixed or feature request implemented registration, keep filled fields when wrong captcha

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #42717
    Anonymous
    Inactive

    Hi

    when someone is restering an event, if he misses the captcha or fills it wrong,

    is it possible to still keep the filled fields (name, phone, etc.) so that he doesn’t have to fill them again?

    thanks

    #47510
    Franky
    Keymaster

    that’s a browser thing I believe: hitting “back” sometimes bring back the previous values for a form, sometimes it doesn’t.

    #47511
    Anonymous
    Inactive

    thanks for your answer.

    it does bring back the previous in a lot of others sites, so I am guessing my browser allows it…so it seems to be a problem of events manager extended, isn’t it?

    ps: I use firefox 4.0.

    #47512
    Franky
    Keymaster

    Try changing in eme_rsvp.php:

    $msg = response_check_captcha(“captcha_check”,1);

    to

    $msg = response_check_captcha(“captcha_check”,0);

    and see if that solves it

    #47513
    Anonymous
    Inactive

    thanks franky

    but it doesn’t solve the problem, the page redisplays with the error message but the field are empty

    #47514
    Franky
    Keymaster

    Well, sorry, but I’m guessing that the php session causes this (the captcha works with a php session).

    #47515
    Anonymous
    Inactive

    ok no worries

    people will retype their name!

    thanks anyway

    #47516
    Anonymous
    Inactive

    Franky, if they hit enter and you process the form to find the captcha is wrong, then you have to pass the values from $_POST to the form.

    So in eme_rsvp.php, line 146, $bookerName would have to get set with the value of the POST

    So on line 19, you can add:

    if (isset($_POST)) { $bookerName = eme_sanitize_request($_POST); }

    and that will keep the name.

    Then just do the same for email, phone and comments.

    #47517
    Anonymous
    Inactive

    Oh, and then you’ll have to unset the POST variables, so after booking the form is cleared.

    Around line 316: unset($_POST);

    #47518
    Franky
    Keymaster

    ok, done in trunk

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top