Advertisement
Guest User

Untitled

a guest
Jan 25th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. if(sanitize_text_field( $_POST['com_submit']) != '' {
  2.  
  3. if ($_REQUEST['bg'] != "681") {
  4.  
  5. $error_msg = __('Грешен отговор на въпроса.','');
  6.  
  7. }
  8.  
  9. else {
  10.  
  11. $firstname=sanitize_text_field( $_REQUEST['com_firstname'] );
  12. $lastname=sanitize_text_field( $_REQUEST['com_lastname']);
  13. $username = sanitize_text_field( $_REQUEST['com_username'] );
  14. $email = sanitize_text_field( $_REQUEST['com_email'] );
  15. $bg = sanitize_text_field( $_REQUEST['bg'] );
  16. $password = $wpdb->escape( sanitize_text_field( $_REQUEST['com_password']));
  17. $status = wp_create_user($username,$password,$email);
  18. $succress ='';
  19. $error_msg='';
  20.  
  21.  
  22. }
  23.  
  24. The rest of your code here ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement