09-01-2017, 04:26 AM
OK, thought I spotted what you were referring to. In join.php I now added the fields:
if(Input::exists()){
$username = Input::get('username');
$fname = Input::get('fname');
$lname = Input::get('lname');
$email = Input::get('email');
$house_nr = Input::get('house_nr');
$street = Input::get('street');
$phone_h = Input::get('phone_h');
$phone_m = Input::get('phone_m');
$agreement_checkbox = Input::get('agreement_checkbox');
I already had this in:
// echo "Trying to create user";
$user->create(array(
'username' => Input::get('username'),
'fname' => Input::get('fname'),
'lname' => Input::get('lname'),
'email' => Input::get('email'),
'house_nr' => Input::get('house_nr'),
'street' => Input::get('street'),
'phone_h' => Input::get('phone_h'),
'phone_m' => Input::get('phone_m'),
'password' =>
password_hash(Input::get('password'), PASSWORD_BCRYPT, array('cost' => 12)),
'permissions' => 1,
'account_owner' => 1,
'stripe_cust_id' => '',
'join_date' => $join_date,
'company' => Input::get('company'),
'email_verified' => $pre,
'active' => 1,
'vericode' => $vericode,
));
} catch (Exception $e) {
die($e->getMessage());
I switched back to the <select> code. Still get the same error "Street is required" though.
if(Input::exists()){
$username = Input::get('username');
$fname = Input::get('fname');
$lname = Input::get('lname');
$email = Input::get('email');
$house_nr = Input::get('house_nr');
$street = Input::get('street');
$phone_h = Input::get('phone_h');
$phone_m = Input::get('phone_m');
$agreement_checkbox = Input::get('agreement_checkbox');
I already had this in:
// echo "Trying to create user";
$user->create(array(
'username' => Input::get('username'),
'fname' => Input::get('fname'),
'lname' => Input::get('lname'),
'email' => Input::get('email'),
'house_nr' => Input::get('house_nr'),
'street' => Input::get('street'),
'phone_h' => Input::get('phone_h'),
'phone_m' => Input::get('phone_m'),
'password' =>
password_hash(Input::get('password'), PASSWORD_BCRYPT, array('cost' => 12)),
'permissions' => 1,
'account_owner' => 1,
'stripe_cust_id' => '',
'join_date' => $join_date,
'company' => Input::get('company'),
'email_verified' => $pre,
'active' => 1,
'vericode' => $vericode,
));
} catch (Exception $e) {
die($e->getMessage());
I switched back to the <select> code. Still get the same error "Street is required" though.