Hello everyone, im trying to connect to a database, and depending on some of
the variables determine where to redirect the page to.
However im sure I am not grasping the concept of header(location : url) to
the fullest.
And I keept getting the dreaded:
Warning: Cannot add header information - headers already sent by (output
started by file.php) on line <line ##>.
error, so could someone let me know if there is another way to redirect this
page using PHP, basically of the variable == 1 it goes to pagea.php, if the
variable ==2 it goes to pageb.php
Pretty straight forward, and the SQL is all set up properly, just need to
forward this.
Thanks!
the variables determine where to redirect the page to.
However im sure I am not grasping the concept of header(location : url) to
the fullest.
And I keept getting the dreaded:
Warning: Cannot add header information - headers already sent by (output
started by file.php) on line <line ##>.
error, so could someone let me know if there is another way to redirect this
page using PHP, basically of the variable == 1 it goes to pagea.php, if the
variable ==2 it goes to pageb.php
Pretty straight forward, and the SQL is all set up properly, just need to
forward this.
Thanks!
Comment