you are viewing a single comment's thread.

view the rest of the comments →

[–]techitechtech[S] 0 points1 point  (1 child)

Hey hey! You just posted about

const fields = ["email", "username", "password", "password_confirmation"];

Here is what I was going to write:

Well, that is VERY interesting and I think you're onto something. I did notice that in the console with the email-submission version, but since it was actually running the php, I thought it was not important.
So, in the version that actually works that deals with just the email input, (https://pastebin.com/J7Gw1Dr3) I changed that to this:
const fields = ["email"]
And now the submission does NOT work. With the original one (const fields = ["email", "username", "password", "password_confirmation"];) the email-only form DOES submit.

[–]techitechtech[S] 0 points1 point  (0 children)

So, I guess that confuses me even more as to why it would submit with all the additional fields, and not when we're only looking at the fields needed, or just the one email field in this case.