Welcome Guest, Not a member yet? Register   Sign In
Handling Multiple input with same field name as array. and show valdiation error
#5

(09-06-2023, 05:38 AM)sammyskills Wrote: With the code you have, if you print_r or var_dump the errors session variable, you should able to get the "index" associated with the error message. So, your error message display should look something like this:

PHP Code:
<?= session('errors.doc_no.0'?>

Where the 0 indicates the index.

Yes, now im able to show error messages. but my validation is not working. it always showing the error message if i enter the data also.
Reply


Messages In This Thread
RE: Handling Multiple input with same field name as array. and show valdiation error - by sknair143 - 09-06-2023, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB