-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,343
  • 2
  • 26
  • 67

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,596
  • 1
  • 11
  • 25