• Resolved halben

    (@halben)


    I have the following code in my custom registration page template:

    <form id="registerform" name="registerform" method="post" action="<?php echo add_query_arg('do', 'register', get_permalink($post -> ID)); ?>">

    When I submit the form, it does custom validation but once those validation error appears, the submit button doesn’t seem to work anymore. Does anyone know where the error is at? Is it from the action="<?php echo add_query_arg('do', 'register', get_permalink($post -> ID)???

    Thanks,
    Halben

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Right click on your webpage and select “View source”, then look for your form. From the source code what is the action="" bit of the form saying?

    Thread Starter halben

    (@halben)

    Thanks for replaying,

    On the custom registration page before pressing the submit button, the form action is https://xxxxx.xxx/register/?do=register.

    But when I click the submit button, it shows the necessary errors. Then i checked the view source again and the Form tag is gone. It only shows the ul/li tags for each fields.

    -_- Any idea?

    Thread Starter halben

    (@halben)

    In my functions.php, I have the following registration validation hook:

    add_action('template_redirect', 'register_a_user');

    Could template_redirect be causing the problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Registration submit button only works once. Need help’ is closed to new replies.