Welcome Guest, Not a member yet? Register   Sign In
Redirect with error validation
#3

(This post was last modified: 04-15-2024, 11:39 PM by pippuccio76.)

(04-15-2024, 05:23 PM)kenjis Wrote: Because there is no $validation in the view.

If you use redirct(), it tells the browser to make another request.

Code:
  <?php if(!empty($validation) ) :?>


          <div class="alert alert-danger border-0 bg-danger  fade show py-2">
            <div class="d-flex align-items-center">
              <div class="font-35 text-white"><i class="bx bxs-message-square-x"></i>
              </div>
              <div class="ms-3">
                <div class="text-white"> <?= $validation->listErrors(); ?></div>
              </div>
            </div>
          </div>


          <?php endif; ?>

this is $validation in view

how can i send $validation error back or to another page ?


ps i don't understand how insert code , use code tags isn't the best way ?
[/code]
Reply


Messages In This Thread
Redirect with error validation - by pippuccio76 - 04-15-2024, 03:51 AM
RE: Redirect with error validation - by kenjis - 04-15-2024, 05:23 PM
RE: Redirect with error validation - by pippuccio76 - 04-15-2024, 11:33 PM
RE: Redirect with error validation - by kenjis - 04-16-2024, 01:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB