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
additional registration fields cleared on submit
#1
The concept of usersc/scripts/additional_join_form_fields.php works great, but I am having trouble with the two parts of validation.

My fields get validated before submit, but on submit the original user form fields get validated, like username and email, and all my additional field inputs are gone if there is an error.

That is, the user fills out the complete registration page, including the standard fields and my additional fields, the validation confirms all my required fields, but on submit they lose their additional field inputs.

I think it's because my fields are validated when the submit button is pressed but prevent the form contents from being posted, but the original user registration form fields are validated only after being posted. At that point, the error messages are displayed at the top, but all my additional form fields are now blank. (I have several fields because they are essentially applying to register).

Is there an additional step I'm missing?

Eric
  Reply


Messages In This Thread
additional registration fields cleared on submit - by eric - 06-01-2019, 12:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)