-1

i need make redirecting my content in new tab after some code checking.

if ($this->form_validation->run('name') == FALSE) {
//...
Show form errors in some windows
//..
} else {
redirect("home/bill_print");

Please help.

jones
  • 1,423
  • 3
  • 35
  • 76

1 Answers1

1

You can't use a server-side language (PHP) to control client-side behavior. You can Open a URL in a new tab using JavaScript window.open function.

Community
  • 1
  • 1
Rafiqul Islam
  • 1,636
  • 1
  • 12
  • 25