[HELP] Form submitted even when empty. |
Hello,
i have the following really serious problem with my register form. Here's the thing. I use jquery to load the register url in a div. Everything's ok so far. The BIG problem is that when i click submit, the form is submited and the ajax function is executed even if the inputs are empty. More over the field is filled with the action attributed even if i have it empty in my code. Here's the modal code (I pasted in pastebin cause its kinda big): https://pastebin.com/AdEpyAci Note: As you can see the attribute value is blank, but the form is still submitted. Model: Code: public function register($enc_password){ Controller: Code: public function create_user(){ It just drives me crazy.. The thing is that even though the input data are required, if they're empty the user can still register and have an empty - not valid profile url and empty data submitted in the db.. Any ideas? Thank you! //Life motto if (sad() == true) { sad().stop(); develop(); } |
Messages In This Thread |
[HELP] Form submitted even when empty. - by HarrysR - 11-20-2018, 09:14 PM
RE: [HELP] Form submitted even when empty. - by neuron - 11-20-2018, 11:30 PM
RE: [HELP] Form submitted even when empty. - by HarrysR - 11-21-2018, 02:54 PM
RE: [HELP] Form submitted even when empty. - by neuron - 11-22-2018, 12:52 AM
RE: [HELP] Form submitted even when empty. - by HarrysR - 11-22-2018, 07:04 AM
RE: [HELP] Form submitted even when empty. - by neuron - 11-22-2018, 11:47 PM
RE: [HELP] Form submitted even when empty. - by Wouter60 - 11-21-2018, 07:41 AM
RE: [HELP] Form submitted even when empty. - by HarrysR - 11-21-2018, 10:45 AM
|