The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form dropdown list
#12
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.
  Reply


Messages In This Thread
Form dropdown list - by pierre - 08-30-2017, 05:57 PM
Form dropdown list - by Brandin - 08-30-2017, 10:14 PM
Form dropdown list - by mudmin - 08-30-2017, 10:40 PM
Form dropdown list - by pierre - 08-31-2017, 02:53 AM
Form dropdown list - by pierre - 08-31-2017, 05:58 AM
Form dropdown list - by pierre - 08-31-2017, 08:01 AM
Form dropdown list - by Brandin - 08-31-2017, 11:21 AM
Form dropdown list - by pierre - 08-31-2017, 01:58 PM
Form dropdown list - by pierre - 08-31-2017, 05:00 PM
Form dropdown list - by Brandin - 08-31-2017, 07:40 PM
Form dropdown list - by pierre - 09-01-2017, 04:15 AM
Form dropdown list - by pierre - 09-01-2017, 04:26 AM
Form dropdown list - by Brandin - 09-01-2017, 11:44 AM
Form dropdown list - by pierre - 09-01-2017, 06:59 PM
Form dropdown list - by karsen - 09-01-2017, 07:07 PM
Form dropdown list - by pierre - 09-01-2017, 07:13 PM
Form dropdown list - by Brandin - 09-01-2017, 07:59 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)