Advertisement:

Author Topic: Need help Multi step user-registration form  (Read 443 times)

Rhoda

  • Jr. Member
  • **
  • Posts: 92
Need help Multi step user-registration form
« on: January 10, 2017, 09:37:44 pm »
Hi,

I need some help! And hope someone is willing to help!

I'm looking for the way how to make a 2 step registration,
first step RingRecaptcha Plugin 2nd step the registration info from the user!

I make two php files 1 = user-register.php 2= user-register-2.php

How can i link the first on the 2nd? and how to secure this that the user is only registered when 2nd is fill out!

This is the code for the first step:
Code: [Select]

<?php
    osc_add_hook
('header','ctg_housing_nofollow_construct');
    
ctg_housing_add_body_class('login register');
    
osc_enqueue_script('jquery-validate');
    
osc_current_web_theme_path('header.php');
    
$userEnabled osc_user_registration_enabled();
?>


    <form name="register" action="<?php echo osc_base_url(true); ?>" method="post" >

    <input type="hidden" name="page" value="register" />
    <input type="hidden" name="action" value="register_post" />

    <button type="submit" class="small radius">
         <?php _e("Next Step 2 / 2"'ctg_housing');?>
    </button>


Code step 2:
Code: [Select]

<?php
    osc_add_hook
('header','ctg_housing_nofollow_construct');
    
ctg_housing_add_body_class('login register');
    
osc_enqueue_script('jquery-validate');
    
osc_current_web_theme_path('header.php');
    
$userEnabled osc_user_registration_enabled();
?>

 
    <form name="register" action="<?php echo osc_base_url(true); ?>" method="post" >
     
    <input type="hidden" name="page" value="register" />
    <input type="hidden" name="action" value="register_post" />

    <button type="submit" class="small radius">
       <?php _e("Create Account"'ctg_housing');?>
     </button>



See image

Thanks
« Last Edit: January 11, 2017, 07:19:55 am by Rhoda »