How can i create a custom error message for a custom validation. I’m using codeIgniter4 Okay guys so I’m a bit of a newbie with CI4 and I have created a custom validation file using the spark command ./spark make:validation and it works but the problem is I still don’t know how to customize the error message too for instance
Tag: validation
errors messages with html and php
i have this code bellow: it doesn’t show any error when the email is not correct or the password is less than 6, and inserts data normally, I need to show for example two error messages if both password and email are not correct, how can I do it? Answer Amend your code so that it will NOT execute the
How to handle validation of multiple hidden fields
I have created a form where in many cases some fields are not displayed until user select a certain option that will make the particular field displayed, this is controlled by HTML onchange Event Attribute with functions in script. To this point everything works fine. Problem: In the Request class I am implementing some rules for validation , for all
Validate Date input not empty and not greater than todays date in Php
Help please, am trying to validate a form date input not empty and should not be greater that today’s date. this is what I did so far. am getting 000-00-00 inserted in MySQL db. what am I doing wrong? here is what in the form input the php tag above has this validations Answer
How to display message in HTML Tag with PHP in a function
I have this PHP form validator that is also hooked up to a mail function and to keep things organized I did the form validation in a separate function that is being called when the form is submitted. Now I have this problem that I don’t know how to display the error message when a field is empty in the
Problems with php validations not working
I was tasked on making simple i-Prepaid Reload programming.So far, I have problem with validations not working on reload.php page. As if there were no validations set at all and it went to result.php after pressing Buy button. I couldn’t figure it out what’s the cause of this error. There should be some errors appear is I put alphabets or
php file size validation
I would like to create in php file size validation for every single file. I used for loop to add attachments, and then created condition to check file, but it’s not working. There’s no error, but it send mail with oversized attachment, instead of stop. Without the size validation part, it sends mail without any problems. For sending I used
Laravel Validation – The full name field is required [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 8 months ago. Improve this question
javascript form not validating fields
I’m trying to validate a form via javascript onSubmit, then run the php captcha verfication and email send action. The problem is that every time I try to check the fields, I can see just one of them highlited with my CSS classes (seems to be related to the ‘return false;’ which blocks me). Anyone has a clue? Here’s my
Form Processing php
I am new here so please point me in the right direction if I am misunderstanding how to submit a question here. 1. I am getting warning errors stating that I have “Undefined array keys”. I get this before and after the form has been submitted. I have defined the arrays at the top so I am unsure why they