Guest User

Untitled

a guest
Jul 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2. $address = (isset($_POST['address']) && ($_POST['address'])) ? $this->qls->Security->make_safe($_POST['address']) : false;
  3. $city = (isset($_POST['city']) && ($_POST['city'])) ? $this->qls->Security->make_safe($_POST['city']) : false;
  4. $post_code = (isset($_POST['post_code'])) ? $this->qls->Security->make_safe($_POST['post_code']) : false;
  5. $telephone = (isset($_POST['telephone']) && preg_match('/^[0-9]{4}[0-9]{7}$/', $_POST['telephone'])) ? $this->qls->Security->make_safe($_POST['telephone']) : false;
  6. $fax = (isset($_POST['fax']) && preg_match('/^[0-9]{4}[0-9]{7}$/', $_POST['fax'])) ? $this->qls->Security->make_safe($_POST['fax']) : false;
  7.  
  8. .......
  9. $this->insert_registration_data($username, $password, $email, $address, $city, $post_code, $telephone, $fax, $save);
  10.  
  11. .....
  12. function insert_registration_data($username, $password, $email) <--- does this has to match top one.
Add Comment
Please, Sign In to add comment