The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Registration: non-required fields - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: Registration: non-required fields (/showthread.php?tid=189) |
Registration: non-required fields - spike - 07-19-2016 M.b. i'm wrong, but there is no check for required rule value, so every registration field is required. take a look at join.php. Field 'company' isn't required, but without filling in your get an error "Company Name is required" <pre> Code: $validation->check($_POST,array( If we add some check in validate.php, registration run smooth without filling company field: <pre> Code: if ($rule === 'required' && empty($value)) { replace with <pre> Code: if ($rule === 'required' && $rule_value === true && empty($value)) { Registration: non-required fields - mudmin - 07-24-2016 I'm not looking at the code in front of me, but some of the validation is being done in HTML and some is done through the validation class. I'll try to take a look at this. |